{"id":"CVE-2026-139249","state":"PUBLISHED","title":"tls: device: protect async RX resync state during device-down","description":"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.","publishedAt":"2026-11-30T13:33:00.068Z","updatedAt":"2026-11-30T13:33:00.068Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"13472de079a1ea57cb333c730bca271cc9ee2b4f","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"580b9f64349f6b9b4219d867cc568dbf5ad30c0a","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"02d8cc622bb6e4525abe5dab2439617b448e8bfd","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"09bb42ce72497a3af5ed529e42b440eb78c09704","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"793cc50510cf57a9932f5afabc0b96c597b82e32","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"9c81d3e2b0b21b3d995bc75e4394896238f1bd79","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"5c8b1902b865c1039237669c0344ca10ff1b39e9","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"f89a228125238f8d4c7e2b8161e2a85fe35307b6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tls/tls_device.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tls/tls_device.c"]}],"references":["https://git.kernel.org/stable/c/13472de079a1ea57cb333c730bca271cc9ee2b4f","https://git.kernel.org/stable/c/580b9f64349f6b9b4219d867cc568dbf5ad30c0a","https://git.kernel.org/stable/c/02d8cc622bb6e4525abe5dab2439617b448e8bfd","https://git.kernel.org/stable/c/09bb42ce72497a3af5ed529e42b440eb78c09704","https://git.kernel.org/stable/c/793cc50510cf57a9932f5afabc0b96c597b82e32","https://git.kernel.org/stable/c/9c81d3e2b0b21b3d995bc75e4394896238f1bd79","https://git.kernel.org/stable/c/5c8b1902b865c1039237669c0344ca10ff1b39e9","https://git.kernel.org/stable/c/f89a228125238f8d4c7e2b8161e2a85fe35307b6"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139249.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139249","state":"PUBLISHED","datePublished":"2026-11-30T13:33:00.068Z","dateUpdated":"2026-11-30T13:33:00.068Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.922Z"},"containers":{"cna":{"title":"tls: device: protect async RX resync state during device-down","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"13472de079a1ea57cb333c730bca271cc9ee2b4f","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"580b9f64349f6b9b4219d867cc568dbf5ad30c0a","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"02d8cc622bb6e4525abe5dab2439617b448e8bfd","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"09bb42ce72497a3af5ed529e42b440eb78c09704","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"793cc50510cf57a9932f5afabc0b96c597b82e32","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"9c81d3e2b0b21b3d995bc75e4394896238f1bd79","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"5c8b1902b865c1039237669c0344ca10ff1b39e9","versionType":"git"},{"version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","status":"affected","lessThan":"f89a228125238f8d4c7e2b8161e2a85fe35307b6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tls/tls_device.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/tls/tls_device.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/13472de079a1ea57cb333c730bca271cc9ee2b4f"},{"url":"https://git.kernel.org/stable/c/580b9f64349f6b9b4219d867cc568dbf5ad30c0a"},{"url":"https://git.kernel.org/stable/c/02d8cc622bb6e4525abe5dab2439617b448e8bfd"},{"url":"https://git.kernel.org/stable/c/09bb42ce72497a3af5ed529e42b440eb78c09704"},{"url":"https://git.kernel.org/stable/c/793cc50510cf57a9932f5afabc0b96c597b82e32"},{"url":"https://git.kernel.org/stable/c/9c81d3e2b0b21b3d995bc75e4394896238f1bd79"},{"url":"https://git.kernel.org/stable/c/5c8b1902b865c1039237669c0344ca10ff1b39e9"},{"url":"https://git.kernel.org/stable/c/f89a228125238f8d4c7e2b8161e2a85fe35307b6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:00.068Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}