U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2026-31660 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://git.kernel.org/stable/c/07cb6c72e66ba548679f22ac29ad588da8999279 kernel.org
https://git.kernel.org/stable/c/16649adc2e19509104245ea1f349b629d858f11f kernel.org
https://git.kernel.org/stable/c/21ae2cda66a55c759607bbf1d23cbaa42019d2de kernel.org
https://git.kernel.org/stable/c/2ca64fb7e2d2ae14619dd204d4f2f0a601f421fb kernel.org
https://git.kernel.org/stable/c/7e37da42eda45d7859d9273fc7e225d8df458038 kernel.org
https://git.kernel.org/stable/c/8b71299d587d9e4c830c18afb884c80ddb30ad28 kernel.org
https://git.kernel.org/stable/c/a9495069b43b8634c1ae0042e888766c34f66637 kernel.org
https://git.kernel.org/stable/c/c71ba669b570c7b3f86ec875be222ea11dacb352 kernel.org

Weakness Enumeration

CWE-ID CWE Name Source

Change History

1 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2026-31660
NVD Published Date:
04/24/2026
NVD Last Modified:
04/24/2026
Source:
kernel.org