{"id":"CVE-2026-63915","state":"PUBLISHED","title":"nfc: hci: fix out-of-bounds read in HCP header parsing","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: hci: fix out-of-bounds read in HCP header parsing\n\nBoth nfc_hci_recv_from_llc() and nci_hci_data_received_cb() read\npacket->header from skb->data at function entry without first checking\nthat the buffer holds at least one byte. A malicious NFC peer can send\na 0-byte HCP frame that passes through the SHDLC layer and reaches\nthese functions, causing an out-of-bounds heap read of packet->header.\nThe same 0-byte frame, if queued as a non-final fragment, also causes\nthe reassembly loop to underflow msg_len to UINT_MAX, triggering\nskb_over_panic() when the reassembled skb is written.\n\nFix this by adding a pskb_may_pull() check at the entry of each\nfunction before packet->header is first accessed. The existing\npskb_may_pull() checks before the reassembled hcp_skb is cast to\nstruct hcp_packet remain in place to guard the 2-byte HCP message\nheader.","publishedAt":"2026-07-19T14:55:19.305Z","updatedAt":"2026-08-05T12:37:09.414Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"ed6d5d97dad0334a7f43d218753429cbe2f70a4f","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"b99366d74b535d0cadb1ef73e04639415d9ff3b7","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"37382293f174b82a0616c8295e32b1fc8e13d1ed","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"c4cc6b3b0013acb3ed0b2b60e57dfae98647fe98","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"1905f5ec3641b2b234bb63549c8ca11ab85466eb","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"22d41b176b9989efd21c3b2d3abf6728f05b9d9a","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"83b1362edc9d6ae376c6f36da116e2c70f2e70a6","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"f040e590c035bfd9553fe79ee9585caf1b14d67b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/hci/core.c","net/nfc/nci/hci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.5","versionType":"semver"},{"version":"5.10.259","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.210","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.176","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.143","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.93","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.35","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.12","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/hci/core.c","net/nfc/nci/hci.c"]}],"references":["https://git.kernel.org/stable/c/ed6d5d97dad0334a7f43d218753429cbe2f70a4f","https://git.kernel.org/stable/c/b99366d74b535d0cadb1ef73e04639415d9ff3b7","https://git.kernel.org/stable/c/37382293f174b82a0616c8295e32b1fc8e13d1ed","https://git.kernel.org/stable/c/c4cc6b3b0013acb3ed0b2b60e57dfae98647fe98","https://git.kernel.org/stable/c/1905f5ec3641b2b234bb63549c8ca11ab85466eb","https://git.kernel.org/stable/c/22d41b176b9989efd21c3b2d3abf6728f05b9d9a","https://git.kernel.org/stable/c/83b1362edc9d6ae376c6f36da116e2c70f2e70a6","https://git.kernel.org/stable/c/f040e590c035bfd9553fe79ee9585caf1b14d67b"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/63xxx/CVE-2026-63915.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-63915","state":"PUBLISHED","datePublished":"2026-07-19T14:55:19.305Z","dateUpdated":"2026-08-05T12:37:09.414Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T07:54:57.020Z"},"containers":{"cna":{"title":"nfc: hci: fix out-of-bounds read in HCP header parsing","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: hci: fix out-of-bounds read in HCP header parsing\n\nBoth nfc_hci_recv_from_llc() and nci_hci_data_received_cb() read\npacket->header from skb->data at function entry without first checking\nthat the buffer holds at least one byte. A malicious NFC peer can send\na 0-byte HCP frame that passes through the SHDLC layer and reaches\nthese functions, causing an out-of-bounds heap read of packet->header.\nThe same 0-byte frame, if queued as a non-final fragment, also causes\nthe reassembly loop to underflow msg_len to UINT_MAX, triggering\nskb_over_panic() when the reassembled skb is written.\n\nFix this by adding a pskb_may_pull() check at the entry of each\nfunction before packet->header is first accessed. The existing\npskb_may_pull() checks before the reassembled hcp_skb is cast to\nstruct hcp_packet remain in place to guard the 2-byte HCP message\nheader."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"ed6d5d97dad0334a7f43d218753429cbe2f70a4f","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"b99366d74b535d0cadb1ef73e04639415d9ff3b7","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"37382293f174b82a0616c8295e32b1fc8e13d1ed","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"c4cc6b3b0013acb3ed0b2b60e57dfae98647fe98","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"1905f5ec3641b2b234bb63549c8ca11ab85466eb","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"22d41b176b9989efd21c3b2d3abf6728f05b9d9a","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"83b1362edc9d6ae376c6f36da116e2c70f2e70a6","versionType":"git"},{"version":"8b8d2e08bf0d50193931afd27482a59376b66b2b","status":"affected","lessThan":"f040e590c035bfd9553fe79ee9585caf1b14d67b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/hci/core.c","net/nfc/nci/hci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.5","versionType":"semver"},{"version":"5.10.259","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.210","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.176","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.143","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.93","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.35","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.12","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/nfc/hci/core.c","net/nfc/nci/hci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ed6d5d97dad0334a7f43d218753429cbe2f70a4f"},{"url":"https://git.kernel.org/stable/c/b99366d74b535d0cadb1ef73e04639415d9ff3b7"},{"url":"https://git.kernel.org/stable/c/37382293f174b82a0616c8295e32b1fc8e13d1ed"},{"url":"https://git.kernel.org/stable/c/c4cc6b3b0013acb3ed0b2b60e57dfae98647fe98"},{"url":"https://git.kernel.org/stable/c/1905f5ec3641b2b234bb63549c8ca11ab85466eb"},{"url":"https://git.kernel.org/stable/c/22d41b176b9989efd21c3b2d3abf6728f05b9d9a"},{"url":"https://git.kernel.org/stable/c/83b1362edc9d6ae376c6f36da116e2c70f2e70a6"},{"url":"https://git.kernel.org/stable/c/f040e590c035bfd9553fe79ee9585caf1b14d67b"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The bug is triggered by malformed HCP frames from a malicious NFC peer over the RF link; NFC is a proximity wireless medium analogous to Bluetooth, requiring the attacker to be within NFC range (~4 cm) of the victim device.\nAC:L - An attacker with commodity NFC hardware can reliably send a 0-byte HCP frame (or fragment sequence) to trigger the out-of-bounds read and the msg_len integer underflow that leads to skb_over_panic(), with no race or special memory layout required.\nPR:N - Exploitation requires no privileges on the victim system; inbound frames are processed in kernel driver/workqueue context with no authentication, and the attacker only needs an active NFC RF session with the victim's controller.\nUI:N - On typical NFC-enabled deployments (Android phones, payment terminals, transit readers), the victim does not need to perform a deliberate administrative action beyond having NFC radio active while an attacker initiates proximity communication.\nS:U - Impact is confined to kernel memory and availability on the victim host; it does not cross a VM, container, or IOMMU security boundary.\nC:H - The vulnerable code dereferences packet->header from skb->data on a zero-length skb, causing an out-of-bounds heap read of at least one byte of adjacent kernel memory.\nI:H - The fragment-reassembly path underflows msg_len when processing zero-length fragments, passing a wrapped length to skb_put_data() and attempting a massive kernel buffer write before panic; combined with the heap out-of-bounds read, this is kernel memory corruption with potential for further exploitation.\nA:H - The integer underflow in HCP fragment reassembly reliably triggers skb_over_panic() (kernel BUG/panic), causing complete loss of kernel availability on affected systems."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:37:09.414Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"5.10.259"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"5.15.210"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"6.1.176"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"6.6.143"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"6.12.93"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"6.18.35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"7.0.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}