NULL pointer dereference in Linux kernel - CVE-2024-26796

 

NULL pointer dereference in Linux kernel - CVE-2024-26796

Published: May 31, 2024 / Updated: May 14, 2025


Vulnerability identifier: #VU90590
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-26796
CWE-ID: CWE-476
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to perform a denial of service (DoS) attack.

The vulnerability exists due to NULL pointer dereference within the pmu_legacy_event_map() and pmu_legacy_init() functions in drivers/perf/riscv_pmu_legacy.c, within the riscv_pmu_ctr_get_width_mask() function in drivers/perf/riscv_pmu.c. A local user can perform a denial of service (DoS) attack.


Affected software

Linux kernel

How to mitigate CVE-2024-26796

Install update from vendor's website.

Linux kernel - addressed in versions 6.6.21, 6.7.9, 6.8

External References

Related Security Bulletins