CVE-2026-80794

Source
https://cve.org/CVERecord?id=CVE-2026-80794
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80794.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-80794
Downstream
Published
2026-09-04T15:13:07.169Z
Modified
2026-09-06T03:46:16.236427232Z
Summary
nfc: nci: fix uninit-value in the RF discover/activated NTF handlers
Details

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

nfc: nci: fix uninit-value in the RF discover/activated NTF handlers

ncirfdiscoverntfpacket() and ncirfintfactivatedntfpacket() each parse a notification into an on-stack struct (ncirfdiscoverntf / ncirfintfactivatedntf) that is not initialised. The RF technology-specific parameters are only extracted when rftechspecificparamslen is non-zero, so a notification that reports a zero length leaves the rftechspecificparams union uninitialised - and both handlers then pass it to nciaddnewprotocol(), which reads it:

  • discover: nciaddnewtarget() -> nciaddnewprotocol();
  • activated: ncitargetautoactivated() -> nciaddnewprotocol().

nciaddnewprotocol() uses nfcapoll->nfcid1len as both a branch condition and a memcpy() length and copies nfcid1/sensres/selres into ndev->targets, which is later exposed to user space via NFCCMDGETTARGET.

BUG: KMSAN: uninit-value in nciaddnewprotocol+0x624/0x6c0 nciaddnewprotocol+0x624/0x6c0 ncintfpacket+0x25b2/0x3c30 ncirxwork+0x318/0x5d0 processscheduledworks+0x84b/0x17a0 workerthread+0xc10/0x11b0 kthread+0x376/0x500 Local variable ntf.i created at: ncintf_packet+0xbc2/0x3c30

Zero-initialise both on-stack notifications so the union reads back as zero when no technology-specific parameters are present.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80794.json"
}
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
e8c0dacd9836dc2dcb28d236c9cc3cfaa9965a20
Fixed
1007a6b429d756513abd25bd00290908f2e89a4a
Fixed
4bda9ef8392710f21e99027467f3f4afdfb5c99a
Fixed
fe69fed3495f676578d49414a069ad7d8468e2ce
Fixed
7489f59d1ea2d3298aa41de7baf193e5e6e132f6
Fixed
7086dab72b3ed95df96842801e10e935cfeb27a3
Fixed
0d4b5cfab6891a5ca0f6aef209beebba4bd7c095
Fixed
5bd00c0e1470d90d77a7c60242854257ddf14e00
Fixed
d6f743d3d388913135681cde051c08823730194f
Fixed
8cbe06c1e699c0a165dae5093a2550e65f914818

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.3.0
Fixed
5.10.269
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-80794.json"