1. Home
  2. Vulnerabilities
  3. CVE-2026-31660

CVE-2026-31660

In the Linux kernel, the following vulnerability has been resolved: nfc: pn533: allocate rx skb before…

Published 24 Apr 2026 · modified 11 Nov 2026 · Sources: NVD, EPSS (FIRST)

Low 22/100

Summary

In the Linux kernel, the following vulnerability has been resolved: nfc: pn533: allocate rx skb before consuming bytes pn532_receive_buf() reports the number of accepted bytes to the serdev core. The current code consumes bytes into recv_skb and may already hand a complete frame to pn533_recv_frame() before allocating a fresh receive buffer. If that alloc_skb() fails, the callback returns 0 even though it has already consumed bytes, and it leaves recv_skb as NULL for the next receive callback. That breaks the receive_buf() accounting contract and can also lead to a NULL dereference on the next skb_put_u8(). Allocate the receive skb lazily before consuming the next byte instead. If allocation fails, return the number of bytes already accepted.

Affected products and versions

Linux (9 line(s))
Linux
ProductVersionsFixed inSource
Linux kernel from 5.5.1 (included) to 5.10.253 (excluded) — NVD
Linux kernel from 5.11 (included) to 5.15.203 (excluded) — NVD
Linux kernel from 5.16 (included) to 6.1.169 (excluded) — NVD
Linux kernel from 6.2 (included) to 6.6.135 (excluded) — NVD
Linux kernel from 6.7 (included) to 6.12.82 (excluded) — NVD
Linux kernel from 6.13 (included) to 6.18.23 (excluded) — NVD
Linux kernel from 6.19 (included) to 6.19.13 (excluded) — NVD
Linux kernel 5.5 — NVD
Linux kernel 7.0 — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
NVD-CWE-Other · Non classé

How this data is obtained and calculated