{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: handle inconsistent state in nilfs_btnode_create_block()\n\nSyzbot reported that a buffer state inconsistency was detected in\nnilfs_btnode_create_block(), triggering a kernel bug.\n\nIt is not appropriate to treat this inconsistency as a bug; it can occur\nif the argument block address (the buffer index of the newly created\nblock) is a virtual block number and has been reallocated due to\ncorruption of the bitmap used to manage its allocation state.\n\nSo, modify nilfs_btnode_create_block() and its callers to treat it as a\npossible filesystem error, rather than triggering a kernel bug."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/nilfs2/btnode.c",
                  "fs/nilfs2/btree.c"
               ],
               "versions": [
                  {
                     "version": "a60be987d45d",
                     "lessThan": "19cce46238ff",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a60be987d45d",
                     "lessThan": "02b87e6334a3",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a60be987d45d",
                     "lessThan": "5f0a6800b8ae",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a60be987d45d",
                     "lessThan": "e34191cce3ee",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a60be987d45d",
                     "lessThan": "012be828a118",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a60be987d45d",
                     "lessThan": "be56dfc9be06",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a60be987d45d",
                     "lessThan": "366c3f688dd0",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "a60be987d45d",
                     "lessThan": "4811f7af6090",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/nilfs2/btnode.c",
                  "fs/nilfs2/btree.c"
               ],
               "versions": [
                  {
                     "version": "2.6.30",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "2.6.30",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.320",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.282",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.224",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.165",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.103",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.44",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.10.3",
                     "lessThanOrEqual": "6.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.11",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/19cce46238ffe3546e44b9c74057103ff8b24c62"
            },
            {
               "url": "https://git.kernel.org/stable/c/02b87e6334a38c65eef49848d3f1ac422f0b2a44"
            },
            {
               "url": "https://git.kernel.org/stable/c/5f0a6800b8aec1b453c7fe4c44fcaac5ffe9d52e"
            },
            {
               "url": "https://git.kernel.org/stable/c/e34191cce3ee63dfa5fb241904aaf2a042d5b6d8"
            },
            {
               "url": "https://git.kernel.org/stable/c/012be828a118bf496e666ef1fc47fc0e7358ada2"
            },
            {
               "url": "https://git.kernel.org/stable/c/be56dfc9be0604291267c07b0e27a69a6bda4899"
            },
            {
               "url": "https://git.kernel.org/stable/c/366c3f688dd0288cbe38af1d3a886b5c62372e4a"
            },
            {
               "url": "https://git.kernel.org/stable/c/4811f7af6090e8f5a398fbdd766f903ef6c0d787"
            }
         ],
         "title": "nilfs2: handle inconsistent state in nilfs_btnode_create_block()",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-42295",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
