CVE-2024-42092·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: gpio: davinci: Validate the obtained number of IRQs Value of pdata->gpio_unbanked is taken from Device Tree. In case of broken DT due to any error this value can be any. Without this value validation there can be out of chips->irqs array boundaries access in davinci_gpio_probe(). Validate the obtained nirq value so that it won't exceed the maximum number of IRQs per bank. Found by Linux Verification Center (linuxtesting.org) with SVACE.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.8
- Published
- 2024-07-29
Affected versions
From: 6.7
Until: 6.9.8
Fixed in: 6.9.8
How to fix this CVE
Update your Linux kernel to version 6.9.8 or later to remediate this vulnerability. The davinci GPIO driver now properly validates the number of IRQs obtained from the Device Tree, preventing potential out-of-bounds array access during driver initialization. Systems running kernel versions 6.7 through 6.9.7 should prioritize this update to eliminate the risk of memory corruption from malformed device tree configurations.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version; versions 6.7 through 6.9.7 are vulnerable
- Check if davinci GPIO driver is loaded with 'lsmod | grep gpio_davinci' or 'grep davinci /proc/devices'
- Examine your device tree source or compiled DTB for gpio_unbanked property values that may exceed the maximum IRQ count
- After updating to 6.9.8+, verify with 'uname -r' and confirm the kernel version is newer than 6.9.7
FAQ
What is CVE-2024-42092?
CVE-2024-42092 is a kernel vulnerability in the davinci GPIO driver that allows out-of-bounds memory access when the Device Tree contains an invalid gpio_unbanked value. Without proper validation, this could lead to kernel memory corruption and system instability.
Is CVE-2024-42092 being actively exploited?
No, CVE-2024-42092 is not listed on the CISA Known Exploited Vulnerabilities catalog and has no public exploits available. However, it remains a high-severity issue due to its potential for local privilege escalation and denial of service.
What versions of Kernel are affected by CVE-2024-42092?
Linux kernel versions 6.7 through 6.9.7 are vulnerable. The fix is included in kernel 6.9.8 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-42092?
Run 'uname -r' to see your kernel version. If it shows 6.7.x, 6.8.x, or 6.9.0 through 6.9.7, your system is vulnerable and requires kernel update.
Does Defensia detect CVE-2024-42092?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-42092 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2d83492259ad746b655f196cd5d1be4b3d0a3782
- https://git.kernel.org/stable/c/70b48899f3f23f98a52c5b1060aefbdc7ba7957b
- https://git.kernel.org/stable/c/7aa9b96e9a73e4ec1771492d0527bd5fc5ef9164
- https://git.kernel.org/stable/c/89d7008af4945808677662a630643b5ea89c6e8d
- https://git.kernel.org/stable/c/a8d78984fdc105bc1a38b73e98d32b1bc4222684
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42092. Free for 1 server.
Get started free