CVE-2024-47703 (GCVE-0-2024-47703)

Vulnerability from cvelistv5 – Published: 2024-10-21 11:53 – Updated: 2026-05-11 20:39
VLAI?
Title
bpf, lsm: Add check for BPF LSM return value
Summary
In the Linux kernel, the following vulnerability has been resolved: bpf, lsm: Add check for BPF LSM return value A bpf prog returning a positive number attached to file_alloc_security hook makes kernel panic. This happens because file system can not filter out the positive number returned by the LSM prog using IS_ERR, and misinterprets this positive number as a file pointer. Given that hook file_alloc_security never returned positive number before the introduction of BPF LSM, and other BPF LSM hooks may encounter similar issues, this patch adds LSM return value check in verifier, to ensure no unexpected value is returned.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 , < 1050727d83e70449991c29dd1cf29fe936a63da3 (git)
Affected: 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 , < 27ca3e20fe80be85a92b10064dfeb56cb2564b1c (git)
Affected: 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 , < 5d99e198be279045e6ecefe220f5c52f8ce9bfd5 (git)
Create a notification for this product.
Linux Linux Affected: 5.7
Unaffected: 0 , < 5.7 (semver)
Unaffected: 6.10.13 , ≤ 6.10.* (semver)
Unaffected: 6.11.2 , ≤ 6.11.* (semver)
Unaffected: 6.12 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-47703",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-21T13:04:16.628163Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-21T13:14:13.303Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/bpf.h",
            "include/linux/bpf_lsm.h",
            "kernel/bpf/bpf_lsm.c",
            "kernel/bpf/btf.c",
            "kernel/bpf/verifier.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1050727d83e70449991c29dd1cf29fe936a63da3",
              "status": "affected",
              "version": "520b7aa00d8cd8e411ecc09f63a2acd90feb6d29",
              "versionType": "git"
            },
            {
              "lessThan": "27ca3e20fe80be85a92b10064dfeb56cb2564b1c",
              "status": "affected",
              "version": "520b7aa00d8cd8e411ecc09f63a2acd90feb6d29",
              "versionType": "git"
            },
            {
              "lessThan": "5d99e198be279045e6ecefe220f5c52f8ce9bfd5",
              "status": "affected",
              "version": "520b7aa00d8cd8e411ecc09f63a2acd90feb6d29",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/bpf.h",
            "include/linux/bpf_lsm.h",
            "kernel/bpf/bpf_lsm.c",
            "kernel/bpf/btf.c",
            "kernel/bpf/verifier.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.7"
            },
            {
              "lessThan": "5.7",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.10.*",
              "status": "unaffected",
              "version": "6.10.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.11.*",
              "status": "unaffected",
              "version": "6.11.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.12",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10.13",
                  "versionStartIncluding": "5.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11.2",
                  "versionStartIncluding": "5.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12",
                  "versionStartIncluding": "5.7",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, lsm: Add check for BPF LSM return value\n\nA bpf prog returning a positive number attached to file_alloc_security\nhook makes kernel panic.\n\nThis happens because file system can not filter out the positive number\nreturned by the LSM prog using IS_ERR, and misinterprets this positive\nnumber as a file pointer.\n\nGiven that hook file_alloc_security never returned positive number\nbefore the introduction of BPF LSM, and other BPF LSM hooks may\nencounter similar issues, this patch adds LSM return value check\nin verifier, to ensure no unexpected value is returned."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T20:39:09.293Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/1050727d83e70449991c29dd1cf29fe936a63da3"
        },
        {
          "url": "https://git.kernel.org/stable/c/27ca3e20fe80be85a92b10064dfeb56cb2564b1c"
        },
        {
          "url": "https://git.kernel.org/stable/c/5d99e198be279045e6ecefe220f5c52f8ce9bfd5"
        }
      ],
      "title": "bpf, lsm: Add check for BPF LSM return value",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-47703",
    "datePublished": "2024-10-21T11:53:38.714Z",
    "dateReserved": "2024-09-30T16:00:12.945Z",
    "dateUpdated": "2026-05-11T20:39:09.293Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-47703",
      "date": "2026-05-20",
      "epss": "0.00035",
      "percentile": "0.10445"
    },
    "fkie_nvd": {
      "configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.7\", \"versionEndExcluding\": \"6.10.13\", \"matchCriteriaId\": \"E1F96D11-7ACD-40CC-B672-1636AFCE5B49\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"6.11\", \"versionEndExcluding\": \"6.11.2\", \"matchCriteriaId\": \"AB755D26-97F4-43B6-8604-CD076811E181\"}]}]}]",
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbpf, lsm: Add check for BPF LSM return value\\n\\nA bpf prog returning a positive number attached to file_alloc_security\\nhook makes kernel panic.\\n\\nThis happens because file system can not filter out the positive number\\nreturned by the LSM prog using IS_ERR, and misinterprets this positive\\nnumber as a file pointer.\\n\\nGiven that hook file_alloc_security never returned positive number\\nbefore the introduction of BPF LSM, and other BPF LSM hooks may\\nencounter similar issues, this patch adds LSM return value check\\nin verifier, to ensure no unexpected value is returned.\"}, {\"lang\": \"es\", \"value\": \"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf, lsm: Agregar comprobaci\\u00f3n para el valor de retorno de BPF LSM Un programa bpf que devuelve un n\\u00famero positivo adjunto al gancho file_alloc_security hace que el kernel entre en p\\u00e1nico. Esto sucede porque el sistema de archivos no puede filtrar el n\\u00famero positivo devuelto por el programa LSM usando IS_ERR y malinterpreta este n\\u00famero positivo como un puntero de archivo. Dado que el gancho file_alloc_security nunca devolvi\\u00f3 un n\\u00famero positivo antes de la introducci\\u00f3n de BPF LSM, y otros ganchos BPF LSM pueden encontrar problemas similares, este parche agrega la comprobaci\\u00f3n del valor de retorno de LSM en el verificador, para garantizar que no se devuelva ning\\u00fan valor inesperado.\"}]",
      "id": "CVE-2024-47703",
      "lastModified": "2024-10-24T13:33:36.957",
      "metrics": "{\"cvssMetricV31\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"baseScore\": 5.5, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"LOCAL\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"LOW\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"NONE\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 1.8, \"impactScore\": 3.6}]}",
      "published": "2024-10-21T12:15:06.823",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/1050727d83e70449991c29dd1cf29fe936a63da3\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/27ca3e20fe80be85a92b10064dfeb56cb2564b1c\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/5d99e198be279045e6ecefe220f5c52f8ce9bfd5\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Analyzed",
      "weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"NVD-CWE-noinfo\"}]}]"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-47703\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T12:15:06.823\",\"lastModified\":\"2024-10-24T13:33:36.957\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbpf, lsm: Add check for BPF LSM return value\\n\\nA bpf prog returning a positive number attached to file_alloc_security\\nhook makes kernel panic.\\n\\nThis happens because file system can not filter out the positive number\\nreturned by the LSM prog using IS_ERR, and misinterprets this positive\\nnumber as a file pointer.\\n\\nGiven that hook file_alloc_security never returned positive number\\nbefore the introduction of BPF LSM, and other BPF LSM hooks may\\nencounter similar issues, this patch adds LSM return value check\\nin verifier, to ensure no unexpected value is returned.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf, lsm: Agregar comprobaci\u00f3n para el valor de retorno de BPF LSM Un programa bpf que devuelve un n\u00famero positivo adjunto al gancho file_alloc_security hace que el kernel entre en p\u00e1nico. Esto sucede porque el sistema de archivos no puede filtrar el n\u00famero positivo devuelto por el programa LSM usando IS_ERR y malinterpreta este n\u00famero positivo como un puntero de archivo. Dado que el gancho file_alloc_security nunca devolvi\u00f3 un n\u00famero positivo antes de la introducci\u00f3n de BPF LSM, y otros ganchos BPF LSM pueden encontrar problemas similares, este parche agrega la comprobaci\u00f3n del valor de retorno de LSM en el verificador, para garantizar que no se devuelva ning\u00fan valor inesperado.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.7\",\"versionEndExcluding\":\"6.10.13\",\"matchCriteriaId\":\"E1F96D11-7ACD-40CC-B672-1636AFCE5B49\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.11\",\"versionEndExcluding\":\"6.11.2\",\"matchCriteriaId\":\"AB755D26-97F4-43B6-8604-CD076811E181\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1050727d83e70449991c29dd1cf29fe936a63da3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/27ca3e20fe80be85a92b10064dfeb56cb2564b1c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5d99e198be279045e6ecefe220f5c52f8ce9bfd5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-47703\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-21T13:04:16.628163Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-21T13:04:19.828Z\"}}], \"cna\": {\"title\": \"bpf, lsm: Add check for BPF LSM return value\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"520b7aa00d8cd8e411ecc09f63a2acd90feb6d29\", \"lessThan\": \"1050727d83e70449991c29dd1cf29fe936a63da3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"520b7aa00d8cd8e411ecc09f63a2acd90feb6d29\", \"lessThan\": \"27ca3e20fe80be85a92b10064dfeb56cb2564b1c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"520b7aa00d8cd8e411ecc09f63a2acd90feb6d29\", \"lessThan\": \"5d99e198be279045e6ecefe220f5c52f8ce9bfd5\", \"versionType\": \"git\"}], \"programFiles\": [\"include/linux/bpf.h\", \"include/linux/bpf_lsm.h\", \"kernel/bpf/bpf_lsm.c\", \"kernel/bpf/btf.c\", \"kernel/bpf/verifier.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.7\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.7\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.10.13\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"include/linux/bpf.h\", \"include/linux/bpf_lsm.h\", \"kernel/bpf/bpf_lsm.c\", \"kernel/bpf/btf.c\", \"kernel/bpf/verifier.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/1050727d83e70449991c29dd1cf29fe936a63da3\"}, {\"url\": \"https://git.kernel.org/stable/c/27ca3e20fe80be85a92b10064dfeb56cb2564b1c\"}, {\"url\": \"https://git.kernel.org/stable/c/5d99e198be279045e6ecefe220f5c52f8ce9bfd5\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbpf, lsm: Add check for BPF LSM return value\\n\\nA bpf prog returning a positive number attached to file_alloc_security\\nhook makes kernel panic.\\n\\nThis happens because file system can not filter out the positive number\\nreturned by the LSM prog using IS_ERR, and misinterprets this positive\\nnumber as a file pointer.\\n\\nGiven that hook file_alloc_security never returned positive number\\nbefore the introduction of BPF LSM, and other BPF LSM hooks may\\nencounter similar issues, this patch adds LSM return value check\\nin verifier, to ensure no unexpected value is returned.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.10.13\", \"versionStartIncluding\": \"5.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.11.2\", \"versionStartIncluding\": \"5.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12\", \"versionStartIncluding\": \"5.7\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T09:37:51.227Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-47703\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T09:37:51.227Z\", \"dateReserved\": \"2024-09-30T16:00:12.945Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T11:53:38.714Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…