Skip to content
Heist/ feed
Back to feed
UnratedFix available

exec: don't WARN for racy path_noexec check

Type: advisorySources: OSV

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]

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.229, 5.15.170, 6.1.115, 6.6.59
CVEs
CVE-2024-50010
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:46 UTC · Revision 1

Source evidence

exec: don't WARN for racy path_noexec check

core-osv · Original source

Published 21 Oct 2024, 18:54 UTC

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]

osv:CVE-2024-50010

Kernel

Fixed versions: 5.10.229, 5.15.170, 6.1.115, 6.6.59

Complete source record
{
  "id": "b93bc6d8ff1feda07c30e98ebc398220532213965dd844a9e627624934c95905",
  "url": "https://osv.dev/vulnerability/CVE-2024-50010",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "exec: don't WARN for racy path_noexec check",
    "summary": "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]",
    "evidence": "osv:CVE-2024-50010",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.229",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.170",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.115",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.59",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-50010",
      "aliases": [
        "CVE-2024-50010"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0fd338b2d2cdf827091ae819ae90ad760b94ad0c"
                },
                {
                  "fixed": "c9b77438077d5a20c79ead95bcdaf9bd4797baaf"
                },
                {
                  "fixed": "b723f96407a0a078cf75970e4dbf16b46d286a61"
                },
                {
                  "fixed": "0bdf77be2330062b3a64f2bec39f62ab874a6796"
                },
                {
                  "fixed": "0d16f53c91111cec914f0811fcc526a2ba77b20d"
                },
                {
                  "fixed": "0d196e7589cefe207d5d41f37a0a28a1fdeeb7c6"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50010.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.9.0"
                },
                {
                  "fixed": "5.10.229"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.170"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.115"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.59"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50010.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.850450415Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://git.kernel.org/stable/c/0bdf77be2330062b3a64f2bec39f62ab874a6796",
        "https://git.kernel.org/stable/c/0d16f53c91111cec914f0811fcc526a2ba77b20d",
        "https://git.kernel.org/stable/c/0d196e7589cefe207d5d41f37a0a28a1fdeeb7c6",
        "https://git.kernel.org/stable/c/b723f96407a0a078cf75970e4dbf16b46d286a61",
        "https://git.kernel.org/stable/c/c9b77438077d5a20c79ead95bcdaf9bd4797baaf",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50010.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-50010",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50010.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-50010",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499798,
  "published_at": "2024-10-21T18:54:02.974+00:00"
}