CVE-2026-23239: espintcp: Fix race condition in espintcp_close()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
espintcp: Fix race condition in espintcp_close()
This issue was discovered during a code audit.
After cancel_work_sync() is called from espintcp_close(), espintcp_tx_work() can still be scheduled from paths such as the Delayed ACK handler or ksoftirqd.
As a result, the espintcp_tx_work() worker may dereference a freed espintcp ctx or sk.
The following is a simple race scenario:
cpu0 cpu1
espintcp_close()
cancel_work_sync(&ctx->work);
espintcp_write_space()
schedule_work(&ctx->work);To prevent this race condition, cancel_work_sync() is replaced with disable_work_sync().
The Linux kernel CVE team has assigned CVE-2026-23239 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 6.12.75 with commit f7ad8b1d0e421c524604d5076b73232093490d5c Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 6.18.16 with commit 664e9df53226b4505a0894817ecad2c610ab11d8 Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 6.19.6 with commit 022ff7f347588de6e17879a1da6019647b21321b Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 7.0-rc2 with commit e1512c1db9e8794d8d130addd2615ec27231d994
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23239
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/xfrm/espintcp.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/f7ad8b1d0e421c524604d5076b73232093490d5c https://git.kernel.org/stable/c/664e9df53226b4505a0894817ecad2c610ab11d8 https://git.kernel.org/stable/c/022ff7f347588de6e17879a1da6019647b21321b https://git.kernel.org/stable/c/e1512c1db9e8794d8d130addd2615ec27231d994