{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: bfa: Ensure the copied buf is NUL terminated\n\nCurrently, we allocate a nbytes-sized kernel buffer and copy nbytes from\nuserspace to that buffer. Later, we use sscanf on this buffer but we don't\nensure that the string is terminated inside the buffer, this can lead to\nOOB read when using sscanf. Fix this issue by using memdup_user_nul instead\nof memdup_user."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/scsi/bfa/bfad_debugfs.c"
               ],
               "versions": [
                  {
                     "version": "9f30b674759b",
                     "lessThan": "481fc0c86173",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "9f30b674759b",
                     "lessThan": "595a6b98deec",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "9f30b674759b",
                     "lessThan": "00b425ff0891",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "9f30b674759b",
                     "lessThan": "1708e3cf2488",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "9f30b674759b",
                     "lessThan": "7d3e694c4fe3",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "9f30b674759b",
                     "lessThan": "204714e68015",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "9f30b674759b",
                     "lessThan": "7510fab46b1c",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "9f30b674759b",
                     "lessThan": "ecb76200f555",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "9f30b674759b",
                     "lessThan": "13d0cecb4626",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/scsi/bfa/bfad_debugfs.c"
               ],
               "versions": [
                  {
                     "version": "3.19",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "3.19",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.316",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.278",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.219",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.161",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.93",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.33",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8.12",
                     "lessThanOrEqual": "6.8.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.9.3",
                     "lessThanOrEqual": "6.9.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.10",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462"
            },
            {
               "url": "https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2"
            },
            {
               "url": "https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a"
            },
            {
               "url": "https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf"
            },
            {
               "url": "https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c"
            },
            {
               "url": "https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35"
            },
            {
               "url": "https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143"
            },
            {
               "url": "https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf"
            },
            {
               "url": "https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3"
            }
         ],
         "title": "scsi: bfa: Ensure the copied buf is NUL terminated",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-38560",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
