cve.bz

CVE-2024-39503 linux linux kernel: Race Condition

7.0 highEPSS 0.2%Fix available

High (7.0) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: netfilter: ipset: Fix race between namespace cleanup and gc in the list:set type Lion Ackermann reported that there is a race condition between namespace cleanup in ipset and the garbage collection of the list:set type. The namespace cleanup can destroy the list:set type of sets while the gc of the set type is waiting to run in rcu cleanup. The latter uses data from the destroyed set which thus leads use after free. The patch contains the following parts: - When destroying all sets, first remove the garbage collectors, then wait if needed and then destroy the sets. - Fix the badly ordered "wait then remove gc" for the destroy a single set case. - Fix the missing rcu locking in the list:set type in the userspace test case. - Use proper RCU list handlings in the list:set type. The patch depends on c1193d9bbbd3 (netfilter: ipset: Add list flush to cancel_gc).

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
CWE-416 Use After Free
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-39503 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-39503?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-39503?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-39503 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 5.4.269 before 5.4.279
Linuxfrom 5.10.210 before 5.10.221
Linuxfrom 5.15.149 before 5.15.162
Linuxfrom 6.1.79 before 6.1.95
Linuxfrom 6.6.18 before 6.6.35
Linuxfrom 6.7.6 before 6.8
Linux6.8 and later

Fixed in

ProductRelease lineFixed in
Linux5.45.4.279
Linux5.105.10.221
Linux5.155.15.162
Linux6.16.1.95
Linux6.66.6.35
Linux6.96.9.6
Linuxlater releases6.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.221-1DSA-5730-1
Debian11linux-6.16.1.119-1~deb11u1DLA-4008-1
Debian12linux6.1.99-1DEBIAN-CVE-2024-39503 DSA-5731-1
Debian13, 14linux6.9.7-1DEBIAN-CVE-2024-39503
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-39503
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2024-39503
Ubuntu20.04:LTSlinux5.4.0-195.215UBUNTU-CVE-2024-39503 USN-7003-1
Ubuntu20.04:LTSlinux-aws5.4.0-1132.142UBUNTU-CVE-2024-39503 USN-7003-1
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1069.75~20.04.1UBUNTU-CVE-2024-39503 USN-7007-1
Ubuntu20.04:LTSlinux-azure5.4.0-1137.144UBUNTU-CVE-2024-39503 USN-7003-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1072.81~20.04.1UBUNTU-CVE-2024-39503 USN-7009-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1072.81~20.04.1.1UBUNTU-CVE-2024-39503 USN-7009-2
Ubuntu20.04:LTSlinux-bluefield5.4.0-1092.99UBUNTU-CVE-2024-39503 USN-7003-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1136.145UBUNTU-CVE-2024-39503 USN-7003-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1068.76~20.04.1UBUNTU-CVE-2024-39503 USN-7007-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2024-39503
62 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.27.1.el8_10RHSA-2024:8856
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.27.1.el8_10RHSA-2024:8856
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.27.1.rt7.368.el8_10RHSA-2024:8870
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.27.1.rt7.368.el8_10RHSA-2024:8870
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 27 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.4.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.4.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 44 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 15 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.27.1.el8_10ALSA-2024:8856
Rocky Linux8kernel0:4.18.0-553.27.1.el8_10RLSA-2024:8856
Rocky Linux8kernel-rt0:4.18.0-553.27.1.rt7.368.el8_10RLSA-2024:8870
Alpaquita23linux-lts6.1.97-r0BELL-CVE-2024-39503
Alpaquita25, streamlinux-lts6.12.41-r0BELL-CVE-2024-39503

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Only local users with `CAP_NET_ADMIN` capability (or root) can trigger this issue.

On Red Hat Enterprise Linux, local unprivileged users can exploit unprivileged user namespaces (CONFIG_USER_NS) to grant themselves this capability.

The OpenShift Container Platform (OCP) control planes or master machines are based on Red Hat Enterprise Linux CoreOS (RHCOS) that consists primarily of RHEL components, hence is also affected by this kernel vulnerability. Like it is mentioned earlier, the successful exploit needs necessary privileges (CAP_NET_ADMIN) and direct, local access . Local user in RHCOS is already a root with full permissions, hence existence of this vulnerability does not bring any value from the potential attacker perspective. From the OpenShift containers perspective, this vulnerability cannot be exploited as in OpenShift the cluster processes on the node are namespaced, which means that switching in the running OpenShift container the namespace will not bring necessary capabilities.

This means that for OpenShift, the impact of this vulnerability is Low.

Similar to CVE-2023-32233 vulnerability has been explained in the following blog post as an example of "Container escape vulnerability":

https://www.redhat.com/en/blog/containers-vulnerability-risk-assessment

Red Hat's mitigation

1. This flaw can be mitigated by preventing the affected netfilter (nf_tables) kernel module from being loaded. For instructions on how to blacklist a kernel module, please see https://access.redhat.com/solutions/41278.

2. If the module cannot be disabled, on non-containerized deployments of Red Hat Enterprise Linux, the mitigation is to disable user namespaces:

```

# echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf

# sysctl -p /etc/sysctl.d/userns.conf

```

On containerized deployments, such as Red Hat OpenShift Container Platform, do not use the second mitigation (disabling user namespaces) as the functionality is needed to be enabled. The first mitigation (blacklisting nf_tables) is still viable for containerized deployments, providing the environment is not using netfilter.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.27.1.rt7.368.el8_10Fixed 2024-11-05RHSA-2024:8870
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.27.1.el8_10Fixed 2024-11-05RHSA-2024:8856
Red Hat Enterprise Linux 9kernel-0:5.14.0-503.11.1.el9_5Fixed 2024-11-12RHSA-2024:9315
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernel-rtWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-39503.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-226-07Siemens Third-Party Components in SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and Facilitiesnone listednone listed
ICSA-25-226-15Siemens SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesRUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XCM-/XRM-/XCH-/XRH-300 familynone listed
ICSA-24-102-01Siemens SIMATIC S7-1500 TM MFP2024-04-09Critical ManufacturingSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON