HIGH Introduced in 5.11
nfc CoreInitRsp OOB
CVE-2026-90221
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: nfc: nci: fix use of uninitialized memory in CORE_INIT_RSP parsing nci_core_init_rsp_packet_v1() and nci_core_init_rsp_packet_v2() parse the CORE_INIT_RSP packet without validating that the skb contains enough data. A malformed response (e.g. injected via virtual_ncidev) can declare a large num_supported_rf_interfaces while providing insufficient data, causing reads of uninitialized slab memory. This is later used in nci_init_complete_req(), triggering a KMSAN uninit-value warning. Add skb length checks before accessing packet fields: - Validate the skb has at least 1 byte for the status field. - Validate the skb can hold the fixed-size header before parsing. - In v2, bounds-check each variable-length rf_interface entry and its extension parameters within the parsing loop. - In v1, verify the skb is large enough for both the variable-length rf_interfaces array and the trailing rsp_2 structure.
02KernelScan AI Analysis
Risk summary
A malformed NFC CORE_INIT_RSP packet can cause reads of uninitialized kernel memory in the NCI (NFC Controller Interface) subsystem. This can lead to information disclosure, memory corruption, and kernel crashes. The vulnerability is reachable through the NFC device interface, which can be triggered by local users with access to NFC hardware or virtual NFC devices.
Vulnerability analysis
The NFC NCI subsystem parses initialization response packets from NFC controllers without first checking that the packet contains enough data. A malicious or malformed response can claim to have more RF interfaces than it actually contains, causing the kernel to read past the end of the packet buffer into uninitialized memory. These uninitialized values are then stored and later used in subsequent operations. The fix adds length checks before accessing any packet fields, ensuring the full fixed-size header is present, validating each variable-length entry fits within the packet bounds, and truncating the interface count to only valid entries rather than the attacker-declared value.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.15 | 5.11 | 5.15.221 | baed3fdf6ed2 |
| 6.1 | 5.11 | 6.1.188 | 2f434478771a |
| 6.12 | 5.11 | 6.12.110 | bbe68e8249e2 |
| 6.18 | 5.11 | 6.18.52 | 4f0483bbcdac |
| 6.6 | 5.11 | 6.6.157 | 5487f04c1ccb |
| 7.2 | 5.11 | 7.2.6 | 7d44b897bff8 |
| mainline | 5.11 | 7.3 | d56575a2595e |
| cip/6.1 | 5.11 | 6.1.189-cip61 | 2f434478771a |
| cip/6.1-rt | 5.11 | 6.1.189-cip61-rt32 | 2f434478771a |
| cip/6.12 | 5.11 | 6.12.111-cip32 | bbe68e8249e2 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |