{"id":"CVE-2026-31660","aliases":["CVE-2026-31660"],"related":[],"kind":"vulnerability","state":"published","title":"nfc: pn533: allocate rx skb before consuming bytes","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnfc: pn533: asignar rx skb antes de consumir bytes\n\npn532_receive_buf() informa el número de bytes aceptados al núcleo serdev. El código actual consume bytes en recv_skb y puede que ya entregue una trama completa a pn533_recv_frame() antes de asignar un nuevo búfer de recepción.\n\nSi ese alloc_skb() falla, la devolución de llamada devuelve 0 a pesar de que ya ha consumido bytes, y deja recv_skb como NULL para la siguiente devolución de llamada de recepción. Eso rompe el contrato de contabilidad de receive_buf() y también puede llevar a una desreferencia NULL en el siguiente skb_put_u8().\n\nEn su lugar, asignar el skb de recepción de forma perezosa antes de consumir el siguiente byte. Si la asignación falla, devolver el número de bytes ya aceptados.","source":"nvd"}],"published":"2026-04-24T14:45:11.039Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","fixed":"2ca64fb7e2d2ae14619dd204d4f2f0a601f421fb","status":"affected"},{"type":"git","introduced":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","fixed":"8b71299d587d9e4c830c18afb884c80ddb30ad28","status":"affected"},{"type":"git","introduced":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","fixed":"16649adc2e19509104245ea1f349b629d858f11f","status":"affected"},{"type":"git","introduced":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","fixed":"07cb6c72e66ba548679f22ac29ad588da8999279","status":"affected"},{"type":"git","introduced":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","fixed":"a9495069b43b8634c1ae0042e888766c34f66637","status":"affected"},{"type":"git","introduced":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","fixed":"21ae2cda66a55c759607bbf1d23cbaa42019d2de","status":"affected"},{"type":"git","introduced":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","fixed":"7e37da42eda45d7859d9273fc7e225d8df458038","status":"affected"},{"type":"git","introduced":"c656aa4c27b17a8c70da223ed5ab42145800d6b5","fixed":"c71ba669b570c7b3f86ec875be222ea11dacb352","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.169","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.135","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.82","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.23","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.13","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.5.1","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.169"},{"status":"affected","introduced":"6.2","fixed":"6.6.135"},{"status":"affected","introduced":"6.7","fixed":"6.12.82"},{"status":"affected","introduced":"6.13","fixed":"6.18.23"},{"status":"affected","introduced":"6.19","fixed":"6.19.13"},{"status":"affected","version":"5.5"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2ca64fb7e2d2ae14619dd204d4f2f0a601f421fb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8b71299d587d9e4c830c18afb884c80ddb30ad28","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/16649adc2e19509104245ea1f349b629d858f11f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07cb6c72e66ba548679f22ac29ad588da8999279","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a9495069b43b8634c1ae0042e888766c34f66637","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21ae2cda66a55c759607bbf1d23cbaa42019d2de","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e37da42eda45d7859d9273fc7e225d8df458038","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c71ba669b570c7b3f86ec875be222ea11dacb352","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31660","url":"https://www.cve.org/CVERecord?id=CVE-2026-31660","licence":"CVE Terms of Use","modified":"2026-05-11T22:13:07.366Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31660","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31660","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.538Z","epss":{"score":0.00119,"percentile":0.01919,"date":"2026-12-01T12:00:22.000Z"}}