{"id":"CVE-2026-43098","aliases":["CVE-2026-43098"],"related":[],"kind":"vulnerability","state":"published","title":"nfc: s3fwrn5: allocate rx skb before consuming bytes","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: s3fwrn5: allocate rx skb before consuming bytes\n\ns3fwrn82_uart_read() reports the number of accepted bytes to the serdev\ncore. The current code consumes bytes into recv_skb and may already\ndeliver a complete frame before allocating a fresh receive buffer.\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: s3fwrn5: allocate rx skb before consuming bytes\n\ns3fwrn82_uart_read() reports the number of accepted bytes to the serdev\ncore. The current code consumes bytes into recv_skb and may already\ndeliver a complete frame before allocating a fresh receive buffer.\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: s3fwrn5: asignar rx skb antes de consumir bytes\n\ns3fwrn82_uart_read() informa el número de bytes aceptados al núcleo de serdev. El código actual consume bytes en recv_skb y puede ya entregar una trama completa antes de asignar un nuevo búfer de recepción.\n\nSi ese alloc_skb() falla, la devolución de llamada devuelve 0 aunque ya haya 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 de NULL en el siguiente skb_put_u8().\n\nAsignar el skb de recepción de forma perezosa en su lugar, antes de consumir el siguiente byte. Si la asignación falla, devolver el número de bytes ya aceptados.","source":"nvd"}],"published":"2026-05-06T07:40:28.845Z","modified":"2026-11-11T21:10:00.200Z","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":"3f52c2cb7e3ada37513dabb69a22cf917dba754f","fixed":"20a57de2e79b797ed75382659d52bf4c7d9cb446","status":"affected"},{"type":"git","introduced":"3f52c2cb7e3ada37513dabb69a22cf917dba754f","fixed":"e4ab0fd1c91882f2a7846b1817781c8741f7f315","status":"affected"},{"type":"git","introduced":"3f52c2cb7e3ada37513dabb69a22cf917dba754f","fixed":"d8c2aa3c4a1ec530a485e46a1c4f1a118bb00156","status":"affected"},{"type":"git","introduced":"3f52c2cb7e3ada37513dabb69a22cf917dba754f","fixed":"7c31f7a599cf00fad3c204092a91a924126c67e4","status":"affected"},{"type":"git","introduced":"3f52c2cb7e3ada37513dabb69a22cf917dba754f","fixed":"6d931680a9851481c3243689488eafed08eeff71","status":"affected"},{"type":"git","introduced":"3f52c2cb7e3ada37513dabb69a22cf917dba754f","fixed":"09822d3d6f68a0cdc4626e0c507324a4927f55a9","status":"affected"},{"type":"git","introduced":"3f52c2cb7e3ada37513dabb69a22cf917dba754f","fixed":"5c14a19d5b1645cce1cb1252833d70b23635b632","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","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.11","fixed":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"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/20a57de2e79b797ed75382659d52bf4c7d9cb446","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e4ab0fd1c91882f2a7846b1817781c8741f7f315","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8c2aa3c4a1ec530a485e46a1c4f1a118bb00156","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c31f7a599cf00fad3c204092a91a924126c67e4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d931680a9851481c3243689488eafed08eeff71","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09822d3d6f68a0cdc4626e0c507324a4927f55a9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c14a19d5b1645cce1cb1252833d70b23635b632","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43098","url":"https://www.cve.org/CVERecord?id=CVE-2026-43098","licence":"CVE Terms of Use","modified":"2026-06-01T16:14:42.508Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43098","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43098","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.673Z","epss":{"score":0.00123,"percentile":0.02202,"date":"2026-12-01T12:00:22.000Z"}}