{"id":"CVE-2026-23240","aliases":["CVE-2026-23240"],"related":[],"kind":"vulnerability","state":"published","title":"tls: Fix race condition in tls_sw_cancel_work_tx()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: Fix race condition in tls_sw_cancel_work_tx()\n\nThis issue was discovered during a code audit.\n\nAfter cancel_delayed_work_sync() is called from tls_sk_proto_close(),\ntx_work_handler() can still be scheduled from paths such as the\nDelayed ACK handler or ksoftirqd.\nAs a result, the tx_work_handler() worker may dereference a freed\nTLS object.\n\nThe following is a simple race scenario:\n\n          cpu0                         cpu1\n\ntls_sk_proto_close()\n  tls_sw_cancel_work_tx()\n                                 tls_write_space()\n                                   tls_sw_write_space()\n                                     if (!test_and_set_bit(BIT_TX_SCHEDULED, &tx_ctx->tx_bitmask))\n    set_bit(BIT_TX_SCHEDULED, &ctx->tx_bitmask);\n    cancel_delayed_work_sync(&ctx->tx_work.work);\n                                     schedule_delayed_work(&tx_ctx->tx_work.work, 0);\n\nTo prevent this race condition, cancel_delayed_work_sync() is\nreplaced with disable_delayed_work_sync().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: Fix race condition in tls_sw_cancel_work_tx()\n\nThis issue was discovered during a code audit.\n\nAfter cancel_delayed_work_sync() is called from tls_sk_proto_close(),\ntx_work_handler() can still be scheduled from paths such as the\nDelayed ACK handler or ksoftirqd.\nAs a result, the tx_work_handler() worker may dereference a freed\nTLS object.\n\nThe following is a simple race scenario:\n\n          cpu0                         cpu1\n\ntls_sk_proto_close()\n  tls_sw_cancel_work_tx()\n                                 tls_write_space()\n                                   tls_sw_write_space()\n                                     if (!test_and_set_bit(BIT_TX_SCHEDULED, &tx_ctx->tx_bitmask))\n    set_bit(BIT_TX_SCHEDULED, &ctx->tx_bitmask);\n    cancel_delayed_work_sync(&ctx->tx_work.work);\n                                     schedule_delayed_work(&tx_ctx->tx_work.work, 0);\n\nTo prevent this race condition, cancel_delayed_work_sync() is\nreplaced with disable_delayed_work_sync().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ntls: Corrección de condición de carrera en tls_sw_cancel_work_tx()\n\nEste problema fue descubierto durante una auditoría de código.\n\nDespués de que se llama a cancel_delayed_work_sync() desde tls_sk_proto_close(), tx_work_handler() aún puede ser programado desde rutas como el gestor de ACK Retrasado o ksoftirqd. Como resultado, el trabajador tx_work_handler() puede desreferenciar un objeto TLS liberado.\n\nEl siguiente es un escenario de condición de carrera simple:\n\n          cpu0                         cpu1\n\ntls_sk_proto_close()\n  tls_sw_cancel_work_tx()\n                                 tls_write_space()\n                                   tls_sw_write_space()\n                                     if (!test_and_set_bit(BIT_TX_SCHEDULED, &amp;tx_ctx-&gt;tx_bitmask))\n    set_bit(BIT_TX_SCHEDULED, &amp;ctx-&gt;tx_bitmask);\n    cancel_delayed_work_sync(&amp;ctx-&gt;tx_work.work);\n                                     schedule_delayed_work(&amp;tx_ctx-&gt;tx_work.work, 0);\n\nPara prevenir esta condición de carrera, cancel_delayed_work_sync() es reemplazado por disable_delayed_work_sync().","source":"nvd"}],"published":"2026-03-10T17:28:27.371Z","modified":"2026-10-19T19:17:43.143Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"f87e62d45e51b12d48d2cb46b5cde8f83b866bc4","fixed":"a5de36d6cee74a92c1a21b260bc507e64bc451de","status":"affected"},{"type":"git","introduced":"f87e62d45e51b12d48d2cb46b5cde8f83b866bc4","fixed":"854cd32bc74fe573353095e90958490e4e4d641b","status":"affected"},{"type":"git","introduced":"f87e62d45e51b12d48d2cb46b5cde8f83b866bc4","fixed":"17153f154f80be2b47ebf52840f2d8f724eb2f3b","status":"affected"},{"type":"git","introduced":"f87e62d45e51b12d48d2cb46b5cde8f83b866bc4","fixed":"7bb09315f93dce6acc54bf59e5a95ba7365c2be4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","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.3.1","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"},{"status":"affected","version":"5.3"},{"status":"affected","version":"5.3"},{"status":"affected","version":"5.3"},{"status":"affected","version":"5.3"},{"status":"affected","version":"5.3"},{"status":"affected","version":"5.3"},{"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/a5de36d6cee74a92c1a21b260bc507e64bc451de","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/854cd32bc74fe573353095e90958490e4e4d641b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17153f154f80be2b47ebf52840f2d8f724eb2f3b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7bb09315f93dce6acc54bf59e5a95ba7365c2be4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-16T15:06:53.340Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23240","url":"https://www.cve.org/CVERecord?id=CVE-2026-23240","licence":"CVE Terms of Use","modified":"2026-10-19T18:35:39.775Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23240","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23240","licence":"Public domain","modified":"2026-10-19T19:17:43.143Z"}],"updatedAt":"2026-11-25T22:59:15.572Z","epss":{"score":0.00563,"percentile":0.48211,"date":"2026-12-01T12:00:22.000Z"}}