{"api_version":"1","generated_at":"2026-12-02T02:38:45+00:00","cve":"CVE-2026-139249","urls":{"html":"https://cve.report/CVE-2026-139249","api":"https://cve.report/api/cve/CVE-2026-139249.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139249","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139249"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:47","updated_at":"2026-12-01 06:17:40"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/09bb42ce72497a3af5ed529e42b440eb78c09704","name":"https://git.kernel.org/stable/c/09bb42ce72497a3af5ed529e42b440eb78c09704","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/13472de079a1ea57cb333c730bca271cc9ee2b4f","name":"https://git.kernel.org/stable/c/13472de079a1ea57cb333c730bca271cc9ee2b4f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9c81d3e2b0b21b3d995bc75e4394896238f1bd79","name":"https://git.kernel.org/stable/c/9c81d3e2b0b21b3d995bc75e4394896238f1bd79","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f89a228125238f8d4c7e2b8161e2a85fe35307b6","name":"https://git.kernel.org/stable/c/f89a228125238f8d4c7e2b8161e2a85fe35307b6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/793cc50510cf57a9932f5afabc0b96c597b82e32","name":"https://git.kernel.org/stable/c/793cc50510cf57a9932f5afabc0b96c597b82e32","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/02d8cc622bb6e4525abe5dab2439617b448e8bfd","name":"https://git.kernel.org/stable/c/02d8cc622bb6e4525abe5dab2439617b448e8bfd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5c8b1902b865c1039237669c0344ca10ff1b39e9","name":"https://git.kernel.org/stable/c/5c8b1902b865c1039237669c0344ca10ff1b39e9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/580b9f64349f6b9b4219d867cc568dbf5ad30c0a","name":"https://git.kernel.org/stable/c/580b9f64349f6b9b4219d867cc568dbf5ad30c0a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139249","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139249","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ed9b7646b06a2ed2450dd9437fc7d1ad2783140c 13472de079a1ea57cb333c730bca271cc9ee2b4f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ed9b7646b06a2ed2450dd9437fc7d1ad2783140c 580b9f64349f6b9b4219d867cc568dbf5ad30c0a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ed9b7646b06a2ed2450dd9437fc7d1ad2783140c 02d8cc622bb6e4525abe5dab2439617b448e8bfd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ed9b7646b06a2ed2450dd9437fc7d1ad2783140c 09bb42ce72497a3af5ed529e42b440eb78c09704 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ed9b7646b06a2ed2450dd9437fc7d1ad2783140c 793cc50510cf57a9932f5afabc0b96c597b82e32 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ed9b7646b06a2ed2450dd9437fc7d1ad2783140c 9c81d3e2b0b21b3d995bc75e4394896238f1bd79 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ed9b7646b06a2ed2450dd9437fc7d1ad2783140c 5c8b1902b865c1039237669c0344ca10ff1b39e9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ed9b7646b06a2ed2450dd9437fc7d1ad2783140c f89a228125238f8d4c7e2b8161e2a85fe35307b6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"139249","cve":"CVE-2026-139249","epss":"0.001610000","percentile":"0.055050000","score_date":"2026-12-01","updated_at":"2026-12-02 00:13:40"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/tls/tls_device.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"13472de079a1ea57cb333c730bca271cc9ee2b4f","status":"affected","version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","versionType":"git"},{"lessThan":"580b9f64349f6b9b4219d867cc568dbf5ad30c0a","status":"affected","version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","versionType":"git"},{"lessThan":"02d8cc622bb6e4525abe5dab2439617b448e8bfd","status":"affected","version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","versionType":"git"},{"lessThan":"09bb42ce72497a3af5ed529e42b440eb78c09704","status":"affected","version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","versionType":"git"},{"lessThan":"793cc50510cf57a9932f5afabc0b96c597b82e32","status":"affected","version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","versionType":"git"},{"lessThan":"9c81d3e2b0b21b3d995bc75e4394896238f1bd79","status":"affected","version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","versionType":"git"},{"lessThan":"5c8b1902b865c1039237669c0344ca10ff1b39e9","status":"affected","version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","versionType":"git"},{"lessThan":"f89a228125238f8d4c7e2b8161e2a85fe35307b6","status":"affected","version":"ed9b7646b06a2ed2450dd9437fc7d1ad2783140c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/tls/tls_device.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.9"},{"lessThan":"5.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"metrics":[{"cvssV3_1":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - No malformed input causes this; it is a missing rcu_read_lock in tls_device_rx_resync_new_rec() racing tls_device_down(). The use comes from the local socket owner's recvmsg/tls_strp_work parser, and the free from a NETDEV_DOWN notifier that no remote TLS peer can raise; the freed object is mlx5 priv_rx driver state, not protocol data.\nAC:H - The free needs an admin to down or unregister the mlx5 netdev (tls_dev_event NETDEV_DOWN -> tls_device_down -> mlx5e_ktls_del_rx kfree). The parser must be preempted between the TLS_RX_DEV_DEGRADED test and the resync_async access for the whole synchronize_net plus teardown, and mlx5 tls-hw-rx-offload is off by default; the attacker controls none of this.\nPR:L - tls_set_device_offload_rx() has no capability check, so any local user can set TCP_ULP tls and TLS_RX (TLS 1.2) on a TCP socket routed over an offload-enabled mlx5 port and drive the process-context parser via recvmsg on that socket.\nUI:N - No victim action is needed; the admin device-down is an operational event already accounted for in AC:H, not a user being lured into an action.\nS:U - The corruption is to kernel heap memory in the same kernel security authority; no VM, IOMMU or sandbox boundary is crossed.\nC:H - After kfree of mlx5e_ktls_offload_context_rx, the parser reads resync_async->req and log[] from freed slab memory that may already be reallocated to another object, a use-after-free read of kernel heap.\nI:H - In the async stage tls_device_rx_resync_async() writes log[loglen++] = seq (a TCP sequence the attacker's peer partly controls), increments rcd_delta and cmpxchg's req to 0 inside the freed object, a heap write into whatever object reuses the slot.\nA:H - A write into a reallocated slab object corrupts unrelated kernel state, which can oops the kernel or trigger a KASAN panic."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:00.105Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"tls: device: protect async RX resync state during device-down","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139249","datePublished":"2026-11-30T13:33:00.068Z","dateReserved":"2026-11-30T13:22:15.922Z","dateUpdated":"2026-12-01T05:42:00.105Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:47","lastModifiedDate":"2026-12-01 06:17:40","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139249","Ordinal":"1","Title":"tls: device: protect async RX resync state during device-down","CVE":"CVE-2026-139249","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139249","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"tls: device: protect async RX resync state during device-down"}]}}}