CVE-2024-38381·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: nfc: nci: Fix uninit-value in nci_rx_work syzbot reported the following uninit-value access issue [1] nci_rx_work() parses received packet from ndev->rx_q. It should be validated header size, payload size and total packet size before processing the packet. If an invalid packet is detected, it should be silently discarded.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.4
- Published
- 2024-06-21
Affected versions
From: 6.8.5
Until: 6.9.4
Fixed in: 6.9.4
How to fix this CVE
Update your Linux kernel to version 6.9.4 or later to resolve this NFC packet parsing vulnerability. This patch adds proper validation for NFC packet headers and payloads in the nci_rx_work() function to prevent uninitialized value access. Systems running kernel versions 6.8.5 through 6.9.3 should prioritize this update to eliminate the risk of kernel memory corruption through malformed NFC frames.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if NFC subsystem is enabled: grep -i nfc /boot/config-$(uname -r) | grep CONFIG_NFC
- Search system logs for NFC-related errors: sudo grep -i 'nfc\|nci' /var/log/kern.log | tail -50
- Confirm kernel patch is applied: grep -A5 'nci_rx_work' /proc/version || cat /boot/System.map-$(uname -r) | grep nci_rx_work
FAQ
What is CVE-2024-38381?
CVE-2024-38381 is an uninitialized memory value vulnerability in the Linux kernel's NFC (Near Field Communication) driver that occurs when processing malformed NFC packets in the nci_rx_work() function. An attacker with local access could trigger kernel memory corruption by sending specially crafted NFC frames.
Is CVE-2024-38381 being actively exploited?
No, CVE-2024-38381 is not listed in the CISA Known Exploited Vulnerabilities catalog and has no publicly available exploits at this time.
What versions of Kernel are affected by CVE-2024-38381?
Linux kernel versions 6.8.5 through 6.9.3 are vulnerable. The issue was resolved in kernel 6.9.4 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-38381?
Run 'uname -r' to check your kernel version; if it reports 6.8.5 to 6.9.3, your system is vulnerable. Additionally, verify NFC is enabled with: grep CONFIG_NFC /boot/config-$(uname -r)
Does Defensia detect CVE-2024-38381?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-38381 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/017ff397624930fd7ac7f1761f3c9d6a7100f68c
- https://git.kernel.org/stable/c/406cfac9debd4a6d3dc5d9258ee086372a8c08b6
- https://git.kernel.org/stable/c/485ded868ed62ceb2acb3a459d7843fd71472619
- https://git.kernel.org/stable/c/ad4d196d2008c7f413167f0a693feb4f0439d7fe
- https://git.kernel.org/stable/c/e4a87abf588536d1cdfb128595e6e680af5cf3ed
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38381. Free for 1 server.
Get started free