CVE-2024-50010

exec: don't WARN for racy path_noexec check

No CVSS score yet EPSS 0.22%

Published 21 Oct 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-50010

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-50010 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

exec: don't WARN for racy path_noexec check

Both i_mode and noexec checks wrapped in WARN_ON stem from an artifact of the previous implementation. They used to legitimately check for the condition, but that got moved up in two commits: 633fb6ac3980 ("exec: move S_ISREG() check earlier") 0fd338b2d2cd ("exec: move path_noexec() check earlier")

Instead of being removed said checks are WARN_ON'ed instead, which has some debug value.

However, the spurious path_noexec check is racy, resulting in unwarranted warnings should someone race with setting the noexec flag.

One can note there is more to perm-checking whether execve is allowed and none of the conditions are guaranteed to still hold after they were tested for.

Additionally this does not validate whether the code path did any perm checking to begin with -- it will pass if the inode happens to be regular.

Keep the redundant path_noexec() check even though it's mindless nonsense checking for guarantee that isn't given so drop the WARN.

Reword the commentary and do small tidy ups while here.

[brauner: keep redundant path_noexec() check]

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 22 Oct 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 0fd338b2d2cdf827091ae819ae90ad760b94ad0c, before c9b77438077d5a20c79ead95bcdaf9bd4797baaf
affected from 0fd338b2d2cdf827091ae819ae90ad760b94ad0c, before b723f96407a0a078cf75970e4dbf16b46d286a61
affected from 0fd338b2d2cdf827091ae819ae90ad760b94ad0c, before 0bdf77be2330062b3a64f2bec39f62ab874a6796
affected from 0fd338b2d2cdf827091ae819ae90ad760b94ad0c, before 0d16f53c91111cec914f0811fcc526a2ba77b20d
affected from 0fd338b2d2cdf827091ae819ae90ad760b94ad0c, before 0d196e7589cefe207d5d41f37a0a28a1fdeeb7c6
Other versions: unaffected
Linux
affected 5.9
unaffected before 5.9
unaffected from 5.10.229 up to and including 5.10.*
unaffected from 5.15.170 up to and including 5.15.*
unaffected from 6.1.115 up to and including 6.1.*
unaffected from 6.6.59 up to and including 6.6.*
unaffected 6.12 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-50010 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-50010

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-50010
trivy image --scanners vuln IMAGE | grep CVE-2024-50010

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-50010 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.