Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2024-38560

Summary
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published At-19 Jun, 2024 | 13:35
Updated At-04 May, 2025 | 09:14
Rejected At-
Credits

scsi: bfa: Ensure the copied buf is NUL terminated

In the Linux kernel, the following vulnerability has been resolved: scsi: bfa: Ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:Linux
Assigner Org ID:416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published At:19 Jun, 2024 | 13:35
Updated At:04 May, 2025 | 09:14
Rejected At:
▼CVE Numbering Authority (CNA)
scsi: bfa: Ensure the copied buf is NUL terminated

In the Linux kernel, the following vulnerability has been resolved: scsi: bfa: Ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

Affected Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • drivers/scsi/bfa/bfad_debugfs.c
Default Status
unaffected
Versions
Affected
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before 481fc0c8617304a67649027c4a44723a139a0462 (git)
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before 595a6b98deec01b6dbb20139f71edcd5fb760ec2 (git)
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before 00b425ff0891283207d7bad607a2412225274d7a (git)
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before 1708e3cf2488788cba5489e4f913d227de757baf (git)
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before 7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c (git)
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before 204714e68015d6946279719fd464ecaf57240f35 (git)
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before 7510fab46b1cbd1680e2a096e779aec3334b4143 (git)
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before ecb76200f5557a2886888aaa53702da1ab9e6cdf (git)
  • From 9f30b674759b9a2da25aefe25d885161d8a911cb before 13d0cecb4626fae67c00c84d3c7851f6b62f7df3 (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • drivers/scsi/bfa/bfad_debugfs.c
Default Status
affected
Versions
Affected
  • 3.19
Unaffected
  • From 0 before 3.19 (semver)
  • From 4.19.316 through 4.19.* (semver)
  • From 5.4.278 through 5.4.* (semver)
  • From 5.10.219 through 5.10.* (semver)
  • From 5.15.161 through 5.15.* (semver)
  • From 6.1.93 through 6.1.* (semver)
  • From 6.6.33 through 6.6.* (semver)
  • From 6.8.12 through 6.8.* (semver)
  • From 6.9.3 through 6.9.* (semver)
  • From 6.10 through * (original_commit_for_fix)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
N/A
https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
N/A
https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
N/A
https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
N/A
https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
N/A
https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
N/A
https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
N/A
https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
N/A
https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
N/A
Hyperlink: https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
x_transferred
https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
x_transferred
https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
x_transferred
https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
x_transferred
https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
x_transferred
https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
x_transferred
https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
x_transferred
https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
x_transferred
https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
x_transferred
Hyperlink: https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
Resource:
x_transferred
2. CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published At:19 Jun, 2024 | 14:15
Updated At:14 Jan, 2025 | 15:40

In the Linux kernel, the following vulnerability has been resolved: scsi: bfa: Ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.17.1HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Type: Primary
Version: 3.1
Base score: 7.1
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CPE Matches

Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 3.19(inclusive) to 4.19.316(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 4.20(inclusive) to 5.4.278(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 5.5(inclusive) to 5.10.219(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 5.11(inclusive) to 5.15.161(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 5.16(inclusive) to 6.1.93(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 6.2(inclusive) to 6.6.33(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 6.7(inclusive) to 6.8.12(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 6.9(inclusive) to 6.9.3(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-125Primarynvd@nist.gov
CWE ID: CWE-125
Type: Primary
Source: nvd@nist.gov
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7aaf854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3af854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757bafaf854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35af854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462af854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2af854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143af854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5caf854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdfaf854a3a-2127-422b-91ae-364da2661108
Patch
Hyperlink: https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/7510fab46b1cbd1680e2a096e779aec3334b4143
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/ecb76200f5557a2886888aaa53702da1ab9e6cdf
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found