CVE-2024-50010
exec: don't WARN for racy path_noexec check
Reported by linux · Published October 21, 2024
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]
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf | Amazon Linux | 6.1.115-126.197.amzn2023 |
| perf | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.115-126.197.amzn2023 |
| linux_kernel | linux | 6.11.3 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0fd338b2d2cdf827091ae819ae90ad760b94ad0c, 0fd338b2d2cdf827091ae819ae90ad760b94ad0c, 0fd338b2d2cdf827091ae819ae90ad760b94ad0c |
| Linux | Linux | 5.9, 0, 5.10.229 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-tools | 0 |
| linux | linux_kernel | 5.9, 5.9, 5.9 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.1.115-126.197 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel | 0 |
| Linux | Linux | 0, 5.15.170, 6.1.115 |
| amazon:2023 | kernel-modules-extra | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
Timeline
- Oct 21, 2024 CVE Published
- Oct 22, 2024 EPSS Score (30 in total, the first dated here)
- Oct 23, 2024 Coalition ESS Score (15 in total, the first dated here)
- Jan 2, 2026 Security Advisory (443 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (376 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-50010
vulnetix vdb fixes CVE-2024-50010
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-50010/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart