{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31660","id":"CVE-2026-31660","title":"nfc: pn533: allocate rx skb before consuming bytes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: pn533: allocate rx skb before consuming bytes\n\npn532_receive_buf() reports the number of accepted bytes to the serdev\ncore. The current code consumes bytes into recv_skb and may already hand\na complete frame to pn533_recv_frame() before allocating a fresh receive\nbuffer.\n\nIf that alloc_skb() fails, the callback returns 0 eve","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: pn533: allocate rx skb before consuming bytes\n\npn532_receive_buf() reports the number of accepted bytes to the serdev\ncore. The current code consumes bytes into recv_skb and may already hand\na complete frame to pn533_recv_frame() before allocating a fresh receive\nbuffer.\n\nIf that alloc_skb() fails, the callback returns 0 even though it has\nalready consumed bytes, and it leaves recv_skb as NULL for the next\nreceive callback. That breaks the receive_buf() accounting contract and\ncan also lead to a NULL dereference on the next skb_put_u8().\n\nAllocate the receive skb lazily before consuming the next byte instead.\nIf allocation fails, return the number of bytes already accepted.","published":"2026-04-24T14:45:11.039Z","updated":"2026-11-13T02:30:51.613473176Z","reserved":"2026-03-09T15:48:24.129Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","lessThan":"2ca64fb7e2d2ae14619dd204d4f2f0a601f421fb","status":"affected","versionType":"git"},{"version":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","lessThan":"8b71299d587d9e4c830c18afb884c80ddb30ad28","status":"affected","versionType":"git"},{"version":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","lessThan":"16649adc2e19509104245ea1f349b629d858f11f","status":"affected","versionType":"git"},{"version":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","lessThan":"07cb6c72e66ba548679f22ac29ad588da8999279","status":"affected","versionType":"git"},{"version":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","lessThan":"a9495069b43b8634c1ae0042e888766c34f66637","status":"affected","versionType":"git"},{"version":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","lessThan":"21ae2cda66a55c759607bbf1d23cbaa42019d2de","status":"affected","versionType":"git"},{"version":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","lessThan":"7e37da42eda45d7859d9273fc7e225d8df458038","status":"affected","versionType":"git"},{"version":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","lessThan":"c71ba669b570c7b3f86ec875be222ea11dacb352","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","lessThan":"5.5","status":"unaffected","versionType":"semver"},{"version":"5.10.253","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.203","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.169","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.135","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.82","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.23","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.13","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/2ca64fb7e2d2ae14619dd204d4f2f0a601f421fb","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8b71299d587d9e4c830c18afb884c80ddb30ad28","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/16649adc2e19509104245ea1f349b629d858f11f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/07cb6c72e66ba548679f22ac29ad588da8999279","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a9495069b43b8634c1ae0042e888766c34f66637","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/21ae2cda66a55c759607bbf1d23cbaa42019d2de","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7e37da42eda45d7859d9273fc7e225d8df458038","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c71ba669b570c7b3f86ec875be222ea11dacb352","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31660.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31660","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00114,"epssPercentile":0.01537,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31660","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31660","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31660","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31660","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}