nfc: fdp: bound the device-reported read length and fix an skb leak
In the Linux kernel, the following vulnerability has been resolved: nfc: fdp: bound the device-reported read length and fix an skb leak fdp_nci_i2c_read() takes the next packet length from two device-supplied bytes and never validates it. The value is a u16 used as the i2c_master_recv() count into a 261-byte on-stack buffer: a malicious, counterfeit or malfunctioning controller (or an i2c bus interposer) can drive it far past the buffer for a stack out-of-bounds write that clobbers the canary and return address, or below the minimum frame size (directly, or by truncating the computed sum) so the header/LRC strip and the next length read run past a short receive. Reject a length outside [FDP_NCI_I2C_MIN_PAYLOAD, FDP_NCI_I2C_MAX_PAYLOAD], as a corrupted packet already is, and force resynchronization. The same loop allocates one data skb per iteration and assumes a length packet followed by a data packet; a device that sends two data packets in one call leaks the first skb when the second allocation overwrites it. Free a previously allocated skb before allocating the next.
CVE-2026-80802
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-80802
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "d9498ab9a78cb63d78dbe4f221d8cc6c91f285ee",
"versionType": "git"
},
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "1fc32327b927a6e2cde086f82575c29880844228",
"versionType": "git"
},
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "8d2c243b79854628ff076c38748c020042f02f57",
"versionType": "git"
},
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "fc3c2bd5b1ec6c7cbc8a50e32d9bcec114f25463",
"versionType": "git"
},
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "0d723090645b82c1cb27cfd7ebf81f0e7c96bcae",
"versionType": "git"
},
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "db7e464b350969c6ea8340de00d9796e5fd5123b",
"versionType": "git"
},
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "e5eec121f2c3bc4c7022613bedd9121a8aa4c949",
"versionType": "git"
},
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "1aa3fc769b0c45bd19f8dab1697084c2b3f6d706",
"versionType": "git"
},
{
"status": "affected",
"version": "a06347c04c13e380afce0c9816df51f00b83faf1",
"lessThan": "7ad21dcfeb5181af0c3ee2608808c0c0a5283aa1",
"versionType": "git"
}
],
"programFiles": [
"drivers/nfc/fdp/i2c.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.4"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.4",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.267",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.218",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.185",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.154",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.106",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.47",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.11",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2.1",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/nfc/fdp/i2c.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-80802
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #34819 · Revision 1
- Added to Heist Feed
- Publisher date