cve-2024-38560
Vulnerability from cvelistv5
Published
2024-06-19 13:35
Modified
2024-11-05 09:29
Severity ?
Summary
scsi: bfa: Ensure the copied buf is NUL terminated
References
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
Impacted products
Vendor Product Version
Linux Linux Version: 3.19
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T04:12:25.822Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-38560",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T17:14:37.926935Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:56.869Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/scsi/bfa/bfad_debugfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "481fc0c86173",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            },
            {
              "lessThan": "595a6b98deec",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            },
            {
              "lessThan": "00b425ff0891",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            },
            {
              "lessThan": "1708e3cf2488",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            },
            {
              "lessThan": "7d3e694c4fe3",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            },
            {
              "lessThan": "204714e68015",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            },
            {
              "lessThan": "7510fab46b1c",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            },
            {
              "lessThan": "ecb76200f555",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            },
            {
              "lessThan": "13d0cecb4626",
              "status": "affected",
              "version": "9f30b674759b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/scsi/bfa/bfad_debugfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.19"
            },
            {
              "lessThan": "3.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.316",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.278",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.219",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.161",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.93",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.33",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.8.*",
              "status": "unaffected",
              "version": "6.8.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.9.*",
              "status": "unaffected",
              "version": "6.9.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.10",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "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\u0027t\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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-11-05T09:29:53.347Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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-9e1c9544281a"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-38560",
    "datePublished": "2024-06-19T13:35:29.555Z",
    "dateReserved": "2024-06-18T19:36:34.922Z",
    "dateUpdated": "2024-11-05T09:29:53.347Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-38560\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-06-19T14:15:16.187\",\"lastModified\":\"2024-11-21T09:26:20.910\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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\u0027t\\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.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se resolvi\u00f3 la siguiente vulnerabilidad: scsi: bfa: aseg\u00farese de que el buf copiado tenga terminaci\u00f3n NUL. Actualmente, asignamos un b\u00fafer del kernel de tama\u00f1o nbytes y copiamos nbytes del espacio de usuario a ese b\u00fafer. M\u00e1s adelante, usamos sscanf en este b\u00fafer pero no nos aseguramos de que la cadena termine dentro del b\u00fafer, esto puede provocar una lectura OOB cuando usamos sscanf. Solucione este problema utilizando memdup_user_nul en lugar de memdup_user.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.