CVE-2025-21735·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: NFC: nci: Add bounds checking in nci_hci_create_pipe() The "pipe" variable is a u8 which comes from the network. If it's more than 127, then it results in memory corruption in the caller, nci_hci_connect_gate().
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.3
- Published
- 2025-02-27
Affected versions
From: 6.13
Until: 6.13.3
Fixed in: 6.13.3
How to fix this CVE
Update your Linux kernel to version 6.13.3 or later to remediate this memory corruption vulnerability in the NFC subsystem. The vulnerability allows local attackers with sufficient privileges to corrupt kernel memory by sending specially crafted NFC packets with out-of-bounds pipe identifiers. Prioritize this update if your system uses NFC hardware or supports NFC-over-USB connectivity.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running `uname -r` and compare against 6.13.3 — versions 6.13.0 through 6.13.2 are vulnerable.
- Step 2: Verify if NFC subsystem is loaded by running `lsmod | grep nfc` — if no output appears, the vulnerable code path is not active.
- Step 3: Search kernel logs for NFC errors with `sudo dmesg | grep -i 'nci\|nfc'` or `sudo journalctl -u kernel | grep -i 'nci'` — memory corruption may appear as segfaults or oops messages.
- Step 4: After patching, reboot your system with `sudo reboot` and verify the new kernel version with `uname -r` to confirm 6.13.3 or later is running.
FAQ
What is CVE-2025-21735?
This vulnerability exists in the Linux kernel's NFC subsystem, specifically in the `nci_hci_create_pipe()` function which fails to validate pipe identifiers. An attacker with local privileges can trigger memory corruption by supplying an out-of-bounds pipe value, potentially leading to privilege escalation or system crash.
Is CVE-2025-21735 being actively exploited?
No, CVE-2025-21735 is not currently listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, as a local privilege escalation vector in the kernel, it should still be prioritized for patching.
What versions of Kernel are affected by CVE-2025-21735?
Linux kernel versions 6.13.0 through 6.13.2 are vulnerable. The fix is included in kernel version 6.13.3 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2025-21735?
Run `uname -r` to display your kernel version — if the output shows 6.13.0, 6.13.1, or 6.13.2, your system is vulnerable and requires immediate kernel upgrade.
Does Defensia detect CVE-2025-21735?
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-2025-21735 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/10b3f947b609713e04022101f492d288a014ddfa
- https://git.kernel.org/stable/c/110b43ef05342d5a11284cc8b21582b698b4ef1c
- https://git.kernel.org/stable/c/172cdfc3a5ea20289c58fb73dadc6fd4a8784a4e
- https://git.kernel.org/stable/c/2ae4bade5a64d126bd18eb66bd419005c5550218
- https://git.kernel.org/stable/c/59c7ed20217c0939862fbf8145bc49d5b3a13f4f
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-21735. Free for 1 server.
Get started free