# CVE-2026-98582: nfc: st21nfca: validate received frame size

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-10-18T15:18:55.545Z
- **Modified:** 2026-10-19T10:19:18.997Z

## Who should check

- Anyone running Linux \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 8934d2889ae16a7c77520e002398d0689c1ecea5; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< d0596ee6c4b928a5c288790522a7495ee867da72; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< f526c218a149a30f110ce434ff17e033042404b8; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< d4008c3499dba7829bfe002edd99a8bff8ae3a7c; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 91be5161f37b0a2795ad6806d69be5fa74522e5c; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 57919d0662d8856211b794140172e51ca389f23d; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 7b996cc06dda54c02a5aa607bda01109f0ac51e6; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< a653c01ce447f10c36b901646888c0330363af4f
- Anyone running Linux 3.16

## Description

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.

## Affected and fixed versions

- Linux: \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 8934d2889ae16a7c77520e002398d0689c1ecea5; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< d0596ee6c4b928a5c288790522a7495ee867da72; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< f526c218a149a30f110ce434ff17e033042404b8; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< d4008c3499dba7829bfe002edd99a8bff8ae3a7c; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 91be5161f37b0a2795ad6806d69be5fa74522e5c; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 57919d0662d8856211b794140172e51ca389f23d; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 7b996cc06dda54c02a5aa607bda01109f0ac51e6; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< a653c01ce447f10c36b901646888c0330363af4f (cvelist)
- Linux: 3.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98582. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98582.md
Affected: Linux >= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, < 8934d2889ae16a7c77520e002398d0689c1ecea5; >= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, < d0596ee6c4b928a5c288790522a7495ee867da72; >= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, < f526c218a149a30f110ce434ff17e033042404b8; >= 3096e25a3e40b73afd59e46…
Fixed in: Linux 8934d2889ae16a7c77520e002398d0689c1ecea5, Linux 91be5161f37b0a2795ad6806d69be5fa74522e5c, Linux 57919d0662d8856211b794140172e51ca389f23d, Linux 7b996cc06dda54c02a5aa607bda01109f0ac51e6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98582 being exploited?

There is no confirmed exploitation: CVE-2026-98582 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-98582?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98582?

Linux \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 8934d2889ae16a7c77520e002398d0689c1ecea5; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< d0596ee6c4b928a5c288790522a7495ee867da72; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< f526c218a149a30f110ce434ff17e033042404b8; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< d4008c3499dba7829bfe002edd99a8bff8ae3a7c; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 91be5161f37b0a2795ad6806d69be5fa74522e5c; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 57919d0662d8856211b794140172e51ca389f23d; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< 7b996cc06dda54c02a5aa607bda01109f0ac51e6; \>= 3096e25a3e40b73afd59e46f3bf8d84f919992a1, \< a653c01ce447f10c36b901646888c0330363af4f; Linux 3.16.

### Is there a fix for CVE-2026-98582?

Yes. Fixed in Linux 8934d2889ae16a7c77520e002398d0689c1ecea5, Linux 91be5161f37b0a2795ad6806d69be5fa74522e5c, Linux 57919d0662d8856211b794140172e51ca389f23d, Linux 7b996cc06dda54c02a5aa607bda01109f0ac51e6. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98582?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/8934d2889ae16a7c77520e002398d0689c1ecea5>
- other: <https://git.kernel.org/stable/c/d0596ee6c4b928a5c288790522a7495ee867da72>
- other: <https://git.kernel.org/stable/c/f526c218a149a30f110ce434ff17e033042404b8>
- other: <https://git.kernel.org/stable/c/d4008c3499dba7829bfe002edd99a8bff8ae3a7c>
- other: <https://git.kernel.org/stable/c/91be5161f37b0a2795ad6806d69be5fa74522e5c>
- other: <https://git.kernel.org/stable/c/57919d0662d8856211b794140172e51ca389f23d>
- other: <https://git.kernel.org/stable/c/7b996cc06dda54c02a5aa607bda01109f0ac51e6>
- other: <https://git.kernel.org/stable/c/a653c01ce447f10c36b901646888c0330363af4f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98582>

HTML: <https://flawdb.com/CVE-2026-98582> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98582>
