nfc: hci: fix out-of-bounds read in HCP header parsing (Linux Linux)

CVE-2026-63915
HIGH 8.8

At a glance

Source
NVD
EPSS
EPSS 0.35 % · percentile 29 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: nfc: hci: fix out-of-bounds read in HCP header parsing Both nfc_hci_recv_from_llc() and nci_hci_data_received_cb() read packet->header from skb->data at function entry without first checking that the buffer holds at least one byte. A malicious NFC peer can send a 0-byte HCP frame that passes through the SHDLC layer and reaches these functions, causing an out-of-bounds heap read of packet->header. The same 0-byte frame, if queued as a non-final fragment, also causes the reassembly loop to underflow msg_len to UINT_MAX, triggering skb_over_panic() when the reassembled skb is written. Fix this by adding a pskb_may_pull() check at the entry of each function before packet->header is first accessed. The existing pskb_may_pull() checks before the reassembled hcp_skb is cast to struct hcp_packet remain in place to guard the 2-byte HCP message header.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 8b8d2e08bf0d50193931afd27482a59376b66b2b < ed6d5d97dad0334a7f43d218753429cbe2f70a4f ; affected 8b8d2e08bf0d50193931afd27482a59376b66b2b < b99366d74b535d0cadb1ef73e04639415d9ff3b7 ; affected 8b8d2e08bf0d50193931afd27482a59376b66b2b < 37382293f174b82a0616c8295e32b1fc8e13d1ed ; affected 8b8d2e08bf0d50193931afd27482a59376b66b2b < c4cc6b3b0013acb3ed0b2b60e57dfae98647fe98 ; affected 8b8d2e08bf0d50193931afd27482a59376b66b2b < 1905f5ec3641b2b234bb63549c8ca11ab85466eb ; affected 8b8d2e08bf0d50193931afd27482a59376b66b2b < 22d41b176b9989efd21c3b2d3abf6728f05b9d9a
Linux · Linuxaffected 3.5 ; unaffected 0 < 3.5 ; unaffected 5.10.259 ≤ 5.10.* ; unaffected 5.15.210 ≤ 5.15.* ; unaffected 6.1.176 ≤ 6.1.* ; unaffected 6.6.143 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD