{"id":"CVE-2026-139249","aliases":["CVE-2026-139249"],"related":[],"kind":"vulnerability","state":"published","title":"tls: device: protect async RX resync state during device-down","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: device: protect async RX resync state during device-down\n\ntls_device_rx_resync_new_rec() can run in process context with the\nsocket lock held, but without an RCU read lock: from the strparser work\nitem (tls_strp_work()) and from the receive paths (tls_rx_rec_wait(),\ntls_rx_rec_done()). The resync_async pointer belongs to the driver RX\ncontext, which tls_device_down() tears down from the netdev notifier\nwithout taking the socket lock; only the softirq entry to the parser is\nimplicitly inside an RCU section.\n\nIf the parser passes the TLS_RX_DEV_DEGRADED check before device-down\nsets it, tls_device_down() can complete synchronize_net() and delete the\ndriver context before the parser accesses resync_async->req or its\nrecord log. In the asynchronous stage the parser also writes the record\nlog, so this is a write to freed memory, not only a stale read. The RCU\nsection in tls_device_resync_rx() starts after those accesses and\ntherefore does not prevent the use-after-free.\n\nFound by code inspection; not reproduced. Hitting the window requires\nthe parser to be preempted between the DEGRADED check and the\nresync_async access across the device-down grace period and the\ndriver's teardown.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: device: protect async RX resync state during device-down\n\ntls_device_rx_resync_new_rec() can run in process context with the\nsocket lock held, but without an RCU read lock: from the strparser work\nitem (tls_strp_work()) and from the receive paths (tls_rx_rec_wait(),\ntls_rx_rec_done()). The resync_async pointer belongs to the driver RX\ncontext, which tls_device_down() tears down from the netdev notifier\nwithout taking the socket lock; only the softirq entry to the parser is\nimplicitly inside an RCU section.\n\nIf the parser passes the TLS_RX_DEV_DEGRADED check before device-down\nsets it, tls_device_down() can complete synchronize_net() and delete the\ndriver context before the parser accesses resync_async->req or its\nrecord log. In the asynchronous stage the parser also writes the record\nlog, so this is a write to freed memory, not only a stale read. The RCU\nsection in tls_device_resync_rx() starts after those accesses and\ntherefore does not prevent the use-after-free.\n\nFound by code inspection; not reproduced. Hitting the window requires\nthe parser to be preempted between the DEGRADED check and the\nresync_async access across the device-down grace period and the\ndriver's teardown.","source":"cvelist"}],"published":"2026-11-30T13:33:00.068Z","modified":"2026-12-01T06:17:40.210Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","fixed":"13472de079a1ea57cb333c730bca271cc9ee2b4f","status":"affected"},{"type":"git","introduced":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","fixed":"580b9f64349f6b9b4219d867cc568dbf5ad30c0a","status":"affected"},{"type":"git","introduced":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","fixed":"02d8cc622bb6e4525abe5dab2439617b448e8bfd","status":"affected"},{"type":"git","introduced":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","fixed":"09bb42ce72497a3af5ed529e42b440eb78c09704","status":"affected"},{"type":"git","introduced":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","fixed":"793cc50510cf57a9932f5afabc0b96c597b82e32","status":"affected"},{"type":"git","introduced":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","fixed":"9c81d3e2b0b21b3d995bc75e4394896238f1bd79","status":"affected"},{"type":"git","introduced":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","fixed":"5c8b1902b865c1039237669c0344ca10ff1b39e9","status":"affected"},{"type":"git","introduced":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","fixed":"f89a228125238f8d4c7e2b8161e2a85fe35307b6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.9","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/13472de079a1ea57cb333c730bca271cc9ee2b4f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/580b9f64349f6b9b4219d867cc568dbf5ad30c0a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02d8cc622bb6e4525abe5dab2439617b448e8bfd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09bb42ce72497a3af5ed529e42b440eb78c09704","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/793cc50510cf57a9932f5afabc0b96c597b82e32","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c81d3e2b0b21b3d995bc75e4394896238f1bd79","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c8b1902b865c1039237669c0344ca10ff1b39e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f89a228125238f8d4c7e2b8161e2a85fe35307b6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139249","url":"https://www.cve.org/CVERecord?id=CVE-2026-139249","licence":"CVE Terms of Use","modified":"2026-12-01T05:42:00.105Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139249","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139249","licence":"Public domain","modified":"2026-12-01T06:17:40.210Z"}],"updatedAt":"2026-12-01T06:32:20.641Z","epss":{"score":0.00161,"percentile":0.05505,"date":"2026-12-01T12:00:22.000Z"}}