CVE-2024-38596: Linux kernel · af_unix: Fix data races in unix_release_sock/unix_stream_sendmsg
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 4.7 Medium · fixed in 4.15.0-1183.198~14.04.1 : update Linux kernel when convenient.
Data as of 28 Oct 2026, 11:14 UTC
- Patch
- Available – fixed in 4.15.0-1183.198~14.04.1, 4.15.0-1175.188~16.04.1, 4.15.0-1183.198~16.04.1 +89
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-6949-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6951-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6952-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6953-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6955-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6949-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6952-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6951-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6951-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6951-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-6979-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7007-1 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gkepkg:deb/ubuntu/linux-gke?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-ibmpkg:deb/ubuntu/linux-ibm?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch fixing this data race is available and included in updated Linux kernel versions (e.g., 4.15.0-1183.198~14.04.1 and later). Users should upgrade to these fixed kernel versions as provided by their Linux distribution vendors, such as Ubuntu's security notice USN-6949-1. No additional mitigation is required beyond applying the official kernel updates.
Description
A data race vulnerability was identified and fixed in the Linux kernel's af_unix subsystem affecting the unix_release_sock and unix_stream_sendmsg functions. The issue arises because unix_release_sock writes to sk->sk_shutdown atomically, but unix_stream_sendmsg reads it non-atomically, leading to a data race detected by KCSAN. This flaw could cause kernel instability or crashes. The vulnerability affects multiple Linux kernel versions, particularly older Ubuntu kernel releases. Fixes have been applied in updated kernel versions to address this race condition.
References
- ubuntu.com/security/CVE-2024-38596 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-38596 (opens in a new tab)
- git.kernel.org/linus/540bf24fba16b88c1b3b9353927204b4f1074e25 (opens in a new tab)
- git.kernel.org/stable/c/fca6072e1a7b1e709ada5604b951513b89b4bd0a (opens in a new tab)
- git.kernel.org/stable/c/de6641d213373fbde9bbdd7c4b552254bc9f82fe (opens in a new tab)
- git.kernel.org/stable/c/4d51845d734a4c5d079e56e0916f936a55e15055 (opens in a new tab)
- git.kernel.org/stable/c/9aa8773abfa0e954136875b4cbf2df4cf638e8a5 (opens in a new tab)
- git.kernel.org/stable/c/8299e4d778f664b31b67cf4cf3d5409de2ecb92c (opens in a new tab)
- git.kernel.org/stable/c/0688d4e499bee3f2749bca27329bd128686230cb (opens in a new tab)
- git.kernel.org/stable/c/a4c88072abcaca593cefe70f90e9d3707526e8f9 (opens in a new tab)
- git.kernel.org/stable/c/a52fa2addfcccc2c5a0217fd45562605088c018b (opens in a new tab)
- git.kernel.org/stable/c/540bf24fba16b88c1b3b9353927204b4f1074e25 (opens in a new tab)
- ubuntu.com/security/notices/USN-6949-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6951-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6952-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6953-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6955-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6949-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6952-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6951-2 (opens in a new tab)