{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2024-46840",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2024-46840",
    "idYear": 2024,
    "status": "PUBLISHED",
    "publishedAt": "2024-09-27T12:39:34.998Z",
    "updatedAt": "2026-05-11T20:37:33.572Z",
    "importedAt": "2026-10-24T01:57:16.009Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "btrfs: clean up our handling of refs == 0 in snapshot delete",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: clean up our handling of refs == 0 in snapshot delete\n\nIn reada we BUG_ON(refs == 0), which could be unkind since we aren't\nholding a lock on the extent leaf and thus could get a transient\nincorrect answer.  In walk_down_proc we also BUG_ON(refs == 0), which\ncould happen if we have extent tree corruption.  Change that to return\n-EUCLEAN.  In do_walk_down() we catch this case and handle it correctly,\nhowever we return -EIO, which -EUCLEAN is a more appropriate error code.\nFinally in walk_up_proc we have the same BUG_ON(refs == 0), so convert\nthat to proper error handling.  Also adjust the error message so we can\nactually do something with the information.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "2c47e605a91dde6b0514f689645e7ab336c8592a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c847b28a799733b04574060ab9d00f215970627d"
            },
            {
              "version": "2c47e605a91dde6b0514f689645e7ab336c8592a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "71291aa7246645ef622621934d2067400380645e"
            },
            {
              "version": "2c47e605a91dde6b0514f689645e7ab336c8592a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c60676b81fab456b672796830f6d8057058f029c"
            },
            {
              "version": "2c47e605a91dde6b0514f689645e7ab336c8592a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "728d4d045b628e006b48a448f3326a7194c88d32"
            },
            {
              "version": "2c47e605a91dde6b0514f689645e7ab336c8592a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9cc887ac24b7a0598f4042ae9af6b9a33072f75b"
            },
            {
              "version": "2c47e605a91dde6b0514f689645e7ab336c8592a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7d1df13bf078ffebfedd361d714ff6cee1ff01b9"
            },
            {
              "version": "2c47e605a91dde6b0514f689645e7ab336c8592a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "03804641ec2d0da4fa088ad21c88e703d151ce16"
            },
            {
              "version": "2c47e605a91dde6b0514f689645e7ab336c8592a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "b8ccef048354074a548f108e51d0557d6adfd3a3"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.31",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.31"
            },
            {
              "version": "4.19.322",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.284",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.226",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.167",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.110",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.51",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.10.10",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.10.*"
            },
            {
              "version": "6.11",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}