Skip to main content

In the Linux kernel, the following vulnerability has been resolved: nfc: st21nfca: validate received frame size st21nfca_hci_i2c_repack() trims a… (CVE-2026-98582)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:31:54 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's NFC driver for the ST21NFCA chip was resolved. The function st21nfca_hci_i2c_repack() improperly handles received frames by trimming at the EOF marker before removing byte stuffing, leading to unsafe assumptions about frame contents. Malformed frames can cause the function to read beyond buffer boundaries, potentially leading to memory corruption. The fix enforces minimum framing byte requirements and corrects the byte unstuffing logic to reject malformed frames.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 21:18:13 UTC

Technical Analysis

The Linux kernel NFC driver for the ST21NFCA chip contained a vulnerability in the st21nfca_hci_i2c_repack() function. This function trims a received frame at its EOF marker before removing byte stuffing and assumes the truncated frame contains the LLC header and two CRC bytes. It unconditionally reads the byte after an escape marker, which can lead to out-of-bounds reads if a malformed frame places EOF immediately after the start marker or ends with an escape marker. The fix requires minimum framing bytes before and after unstuffing, uses separate cursors for input and output during byte unstuffing, and rejects escape markers without their encoded byte, preventing malformed frames from causing buffer overreads during CRC processing.

Potential Impact

Malformed NFC frames can cause the vulnerable function to read beyond the allocated buffer, potentially leading to memory corruption. This could affect kernel stability or security depending on how the corrupted memory is used. No known exploits are reported in the wild.

Mitigation Recommendations

A fix has been implemented in the Linux kernel NFC driver to validate frame sizes properly and safely handle byte unstuffing. Users should apply the official kernel updates that include this patch to remediate the vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-g367-xhx5-qhm5
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98582"]

Threat ID: 6ad520ae2cdf04f656993a96

Added to database: 10/18/2026, 19:40:30 UTC

Last enriched: 10/18/2026, 21:18:13 UTC

Last updated: 10/18/2026, 23:08:14 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses