CVE-2026-31660

nfc: pn533: allocate rx skb before consuming bytes

No CVSS score yet EPSS 0.12%

Published 24 Apr 2026 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2026-31660

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31660 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 1.92% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c656aa4c27b17a8c70da223ed5ab42145800d6b5, before 2ca64fb7e2d2ae14619dd204d4f2f0a601f421fb
affected from c656aa4c27b17a8c70da223ed5ab42145800d6b5, before 8b71299d587d9e4c830c18afb884c80ddb30ad28
affected from c656aa4c27b17a8c70da223ed5ab42145800d6b5, before 16649adc2e19509104245ea1f349b629d858f11f
affected from c656aa4c27b17a8c70da223ed5ab42145800d6b5, before 07cb6c72e66ba548679f22ac29ad588da8999279
affected from c656aa4c27b17a8c70da223ed5ab42145800d6b5, before a9495069b43b8634c1ae0042e888766c34f66637
affected from c656aa4c27b17a8c70da223ed5ab42145800d6b5, before 21ae2cda66a55c759607bbf1d23cbaa42019d2de
affected from c656aa4c27b17a8c70da223ed5ab42145800d6b5, before 7e37da42eda45d7859d9273fc7e225d8df458038
affected from c656aa4c27b17a8c70da223ed5ab42145800d6b5, before c71ba669b570c7b3f86ec875be222ea11dacb352
Other versions: unaffected
Linux
affected 5.5
unaffected before 5.5
unaffected from 5.10.253 up to and including 5.10.*
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.169 up to and including 6.1.*
unaffected from 6.6.135 up to and including 6.6.*
unaffected from 6.12.82 up to and including 6.12.*
unaffected from 6.18.23 up to and including 6.18.*
unaffected from 6.19.13 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31660 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31660

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31660
trivy image --scanners vuln IMAGE | grep CVE-2026-31660

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31660 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.