CVE-2026-98582

Source
https://cve.org/CVERecord?id=CVE-2026-98582
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98582.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98582
Downstream
Published
2026-10-18T15:18:55Z
Modified
2026-10-19T02:46:49Z
Summary
nfc: st21nfca: validate received frame size
Details

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

nfc: st21nfca: validate received frame size

st21nfca_hci_i2c_repack() trims a received frame at its EOF marker before removing byte stuffing. It then assumes the truncated frame contains the LLC header and two CRC bytes, and it unconditionally reads the byte after an escape marker.

A malformed frame can place EOF immediately after the start marker or can end its data portion with an escape marker. The former leaves too few bytes for check_crc(), while the latter makes the unstuffing loop read past the current skb length.

Require the minimum framing bytes both before and after unstuffing. Use separate input and output cursors while removing byte stuffing, and reject an escape marker without its encoded byte. This keeps malformed frames within the received frame boundary before CRC processing.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98582.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
3096e25a3e40b73afd59e46f3bf8d84f919992a1
Fixed
8934d2889ae16a7c77520e002398d0689c1ecea5
Fixed
d0596ee6c4b928a5c288790522a7495ee867da72
Fixed
f526c218a149a30f110ce434ff17e033042404b8
Fixed
d4008c3499dba7829bfe002edd99a8bff8ae3a7c
Fixed
91be5161f37b0a2795ad6806d69be5fa74522e5c
Fixed
57919d0662d8856211b794140172e51ca389f23d
Fixed
7b996cc06dda54c02a5aa607bda01109f0ac51e6
Fixed
a653c01ce447f10c36b901646888c0330363af4f

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.16.0
Fixed
5.10.271
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.222
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.189
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.158
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.112
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.55
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.9

Database specific

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