CVE-2026-80795

Source
https://cve.org/CVERecord?id=CVE-2026-80795
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80795.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-80795
Downstream
Published
2026-09-04T15:13:08.640Z
Modified
2026-09-06T03:46:46.237687604Z
Summary
nfc: nci: fix out-of-bounds write in nci_target_auto_activated()
Details

In the Linux kernel, the following vulnerability has been resolved:

nfc: nci: fix out-of-bounds write in ncitargetauto_activated()

ncitargetautoactivated() appends a target to the fixed-size array ndev->targets[NCIMAXDISCOVEREDTARGETS] and increments ndev->ntargets without first checking the array is full; unlike its sibling nciaddnewtarget(), which bails out when ntargets already equals NCIMAXDISCOVEREDTARGETS.

ndev->ntargets is only cleared by ncicleartargetlist(), so an NFCC that repeatedly re-runs discovery (RFDISCOVERRSP, which re-enters NCIDISCOVERY without clearing the target list) and reports an auto-activated target (RFINTFACTIVATEDNTF) drives ntargets past the limit. The append then writes a struct nfctarget past the end of the array (a slab out-of-bounds write), and nfctargetsfound() goes on to walk the array with the inflated count:

BUG: KASAN: slab-out-of-bounds in nciaddnewprotocol+0x94/0x2ac [nci] Write of size 2 at addr ffff0000c7299a18 by task kworker/u8:0/12 Workqueue: nfc0ncirxwq ncirxwork [nci] Call trace: nciaddnewprotocol+0x94/0x2ac [nci] ncintfpacket+0xddc/0x11a0 [nci] ncirxwork+0x15c/0x1e0 [nci] processonework+0x2dc/0x500 workerthread+0x240/0x460 kthread+0x1c0/0x1d0 retfromfork+0x10/0x20

The buggy address belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1024 bytes to the right of allocated 1560-byte region [ffff0000c7299000, ffff0000c7299618)

Guard ncitargetautoactivated() with the same check used by nciaddnewtarget().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80795.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
019c4fbaa790e2b3f11dab0c8b7d9896d77db3e5
Fixed
0dc59de0075f88404a0f4a2b5233104ef459fbb2
Fixed
94530ffabfca57e9bff1d207106010014cc84032
Fixed
afd8605fb43becb892311102844955c3b127fc7e
Fixed
24761d3a5f692df5f7d848caeabcb2afd10917aa
Fixed
50e87e1c0e18d791dcd7dccf30f9a2f3e2cf3951
Fixed
2f08dbce3b37624ec6b424d759336a99586170ec
Fixed
d7083f41c21b30582e91b2e6de4d54dce74f6f9c
Fixed
129032c0616d83a5e3e304f6ebf88f14ba01e5f7
Fixed
ac200079db50af81e6b04d058b33ec92901d8edd

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80795.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.4.0
Fixed
5.10.267
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.218
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.185
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.154
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.106
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.47
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.11
Type
ECOSYSTEM
Events
Introduced
7.2.0
Fixed
7.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80795.json"