{
   "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: protect references to superblock parameters exposed in sysfs\n\nThe superblock buffers of nilfs2 can not only be overwritten at runtime\nfor modifications/repairs, but they are also regularly swapped, replaced\nduring resizing, and even abandoned when degrading to one side due to\nbacking device issues.  So, accessing them requires mutual exclusion using\nthe reader/writer semaphore \"nilfs->ns_sem\".\n\nSome sysfs attribute show methods read this superblock buffer without the\nnecessary mutual exclusion, which can cause problems with pointer\ndereferencing and memory access, so fix it."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/nilfs2/sysfs.c"
               ],
               "versions": [
                  {
                     "version": "da7141fb78db",
                     "lessThan": "b90beafac059",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "da7141fb78db",
                     "lessThan": "ba97ba173f96",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "da7141fb78db",
                     "lessThan": "157c0d94b4c4",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "da7141fb78db",
                     "lessThan": "b14e7260bb69",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "da7141fb78db",
                     "lessThan": "19cfeba0e4b8",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "da7141fb78db",
                     "lessThan": "8c6e43b3d5f1",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "da7141fb78db",
                     "lessThan": "962562d4c70c",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "da7141fb78db",
                     "lessThan": "683408258917",
                     "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/sysfs.c"
               ],
               "versions": [
                  {
                     "version": "3.17",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "3.17",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.322",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.284",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.226",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.167",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.110",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.51",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.10.10",
                     "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/b90beafac05931cbfcb6b1bd4f67c1923f47040e"
            },
            {
               "url": "https://git.kernel.org/stable/c/ba97ba173f9625d5f34a986088979eae8b80d38e"
            },
            {
               "url": "https://git.kernel.org/stable/c/157c0d94b4c40887329418c70ef4edd1a8d6b4ed"
            },
            {
               "url": "https://git.kernel.org/stable/c/b14e7260bb691d7f563f61da07d61e3c8b59a614"
            },
            {
               "url": "https://git.kernel.org/stable/c/19cfeba0e4b8eda51484fcf8cf7d150418e1d880"
            },
            {
               "url": "https://git.kernel.org/stable/c/8c6e43b3d5f109cf9c61bc188fcc8175404e924f"
            },
            {
               "url": "https://git.kernel.org/stable/c/962562d4c70c5cdeb4e955d63ff2017c4eca1aad"
            },
            {
               "url": "https://git.kernel.org/stable/c/683408258917541bdb294cd717c210a04381931e"
            }
         ],
         "title": "nilfs2: protect references to superblock parameters exposed in sysfs",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-46780",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
