CVE Explore

NULL pointer dereference in Linux

CVE-2024-35883

CVSS v3
5.5 Medium
Public exploits
None known
EPSS
0.002 · 13.5th percentile
Published
2024-05-19

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

Attack Vector
Local AV:L
Attack Complexity
Low AC:L
Privileges Required
Low PR:L
User Interaction
None UI:N
Scope
Unchanged S:U
Confidentiality
None C:N
Integrity
None I:N
Availability
High A:H

EPSS exploit prediction

EPSS 0.002, 13.5th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 1cc0cbea7167af524a7f7b2d0d2f19f7a324e807, 6.2, 0
  • Linux Kernel — versions 6.9

Weakness classification (CWE)

References