漏洞详情: CVE-2024-35883

漏洞标题
spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe
来源:NVD
Linux kernel 安全漏洞
来源:CNNVD
spi: mchp-pci1xxx: 在pci1xxx_spi_probe中修复可能的空指针解除引用
来源:神龙机器人
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe In function pci1xxxx_spi_probe, there is a potential null pointer that may be caused by a failed memory allocation by the function devm_kzalloc. Hence, a null pointer check needs to be added to prevent null pointer dereferencing later in the code. To fix this issue, spi_bus->spi_int[iter] should be checked. The memory allocated by devm_kzalloc will be automatically released, so just directly return -ENOMEM without worrying about memory leaks.
来源:NVD
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于空指针取消引用。
来源:CNNVD
在Linux内核中,已解决以下漏洞: spi: mchp-pci1xxx: 在pci1xxx_spi_probe函数中修复可能的空指针解除引用问题 在pci1xxxx_spi_probe函数中,可能存在一个潜在的空指针,这可能是由于函数devm_kzalloc失败分配内存所引起。因此,需要添加空指针检查以防止代码中稍后的空指针解除引用。 为了解决这个问题,应检查spi_bus->spi_int[iter]。由devm_kzalloc分配的内存将自动释放,因此可以直接返回-ENOMEM而无需担心内存泄漏。
来源:神龙机器人
漏洞评分(CVSS)
NVD 暂无评分
来源:NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
来源:神龙机器人, 准确率:N/A
漏洞类别
NVD 暂无漏洞类别信息
来源:NVD
其他
来源:CNNVD
相关链接