Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-38381 Overview
CVE-2024-38381 is a kernel vulnerability in the Linux Near Field Communication (NFC) Controller Interface (NCI) subsystem. The flaw resides in the nci_rx_work() function, which parses received packets from the ndev->rx_q queue without validating header size, payload size, or total packet size before processing. The condition was reported by syzbot as an uninitialized value access [CWE-908]. A local attacker with low privileges can trigger the issue through crafted NFC traffic, resulting in high confidentiality and availability impact on affected systems. Siemens and Debian LTS have published advisories tracking the fix across downstream distributions.
Critical Impact
Local attackers can leverage uninitialized memory in the NFC NCI receive path to disclose kernel data or trigger denial of service on vulnerable Linux kernels.
Affected Products
- Linux Kernel (multiple stable branches prior to the backported fixes)
- Debian Linux distributions tracked under DLA-2024
- Siemens industrial products referencing SSA-265688 and SSA-613116
Discovery Timeline
- 2024-06-21 - CVE-2024-38381 published to the National Vulnerability Database
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2024-38381
Vulnerability Analysis
The vulnerability is an uninitialized memory use [CWE-908] in the Linux kernel NFC NCI driver. The nci_rx_work() worker dequeues socket buffers (sk_buff) from ndev->rx_q and dispatches them to packet-type handlers. The function previously trusted that queued packets contained a valid NCI header and payload. When a malformed packet is placed in the queue, downstream handlers read fields that were never initialized, producing undefined behavior inside kernel memory.
Exploitation is constrained to a local attack vector with low attack complexity and low privileges, and does not require user interaction. Successful triggering can leak kernel memory contents or crash the kernel, impacting confidentiality and availability. Integrity is not affected because the flaw does not permit arbitrary writes.
Root Cause
The root cause is missing input validation in nci_rx_work(). The function did not verify header size, payload size, or total packet size against the actual length of the buffered packet before invoking the handler path. Malformed frames therefore reached code paths that read beyond initialized data. The upstream fix adds length checks and silently discards packets that fail validation.
Attack Vector
An attacker with local access and the ability to interact with the NFC subsystem can enqueue a malformed NCI packet. When nci_rx_work() processes the packet, the kernel accesses uninitialized memory. The vulnerability was originally reproduced by syzbot through fuzzing of the NFC stack. See the upstream commits referenced below for the exact validation logic added to the receive worker.
No verified public exploit code is available. The vulnerability mechanism is described in the upstream commit messages and the Debian LTS Announcement.
Detection Methods for CVE-2024-38381
Indicators of Compromise
- Unexpected kernel oops or warning messages referencing nci_rx_work or the NFC NCI subsystem in dmesg and /var/log/kern.log.
- KMSAN or KASAN reports flagging uninitialized value use in NFC packet handling on instrumented kernels.
- Unexplained crashes on systems with NFC hardware enabled and user processes interacting with /dev/nfc* interfaces.
Detection Strategies
- Inventory running kernel versions and compare against the fixed commits listed by kernel.org to identify unpatched hosts.
- Monitor audit logs for unprivileged processes opening NFC sockets or sending data to NCI devices on systems where NFC is not operationally required.
- Correlate kernel crash telemetry with user activity to identify attempts to trigger the receive path with malformed frames.
Monitoring Recommendations
- Forward kernel ring buffer events and crash dumps to a centralized log platform for long-term retention and alerting on nci_ symbol references.
- Alert on new processes loading the nci or nfc kernel modules on servers where the capability should remain unused.
- Track package versions of the Linux kernel across the fleet and alert when hosts fall behind vendor security advisories such as Siemens SSA-265688.
How to Mitigate CVE-2024-38381
Immediate Actions Required
- Apply the kernel update provided by your Linux distribution that incorporates the upstream fix for nci_rx_work().
- On systems that do not require NFC functionality, blacklist the nfc and nci kernel modules to remove the attack surface.
- Restrict local, low-privileged access on multi-tenant systems until patched kernels are deployed and verified.
Patch Information
The fix was committed to the upstream Linux kernel and backported to multiple stable branches. Reference commits include 017ff39762, 406cfac9de, 485ded868e, ad4d196d20, e4a87abf58, e53a7f8afc, e8c8e0d0d2, and f80b786ab0. Downstream fixes are available through the Debian LTS Announcement and Siemens advisories SSA-265688 and SSA-613116.
Workarounds
- Unload the NFC modules at boot using modprobe blacklist entries for nfc, nci, and related chipset drivers when NFC is not required.
- Limit permissions on NFC device nodes and restrict user namespaces that would allow unprivileged users to reach the vulnerable code path.
- Where kernel upgrade is deferred, apply vendor-provided livepatches that address the uninitialized value access in nci_rx_work().
# Disable NFC kernel modules on systems that do not require NFC
echo 'blacklist nfc' | sudo tee /etc/modprobe.d/disable-nfc.conf
echo 'blacklist nci' | sudo tee -a /etc/modprobe.d/disable-nfc.conf
sudo update-initramfs -u
sudo reboot
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

