High severity · published May 30, 2024
CVE-2024-36934
bna: ensure the copied buf is NUL terminated
7.8
CVSS
0.3%
EPSS
No
On KEV
Description
In the Linux kernel, the following vulnerability has been resolved:
bna: 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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 24% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
3.3 before 4.19.314; 4.20 before 5.4.276; 5.5 before 5.10.217; 5.11 before 5.15.159; 5.16 before 6.1.91; 6.2 before 6.6.31; +7 more · source: NVD
LI
Linux · Linux
7afc5dbde09104b023ce04465ba71aaba0fc4346 before bd502ba81cd1d515deddad7dbc6b812b14b97147; 7afc5dbde09104b023ce04465ba71aaba0fc4346 before 80578ec10335bc15ac35fd1703c22aab34e39fdd; 7afc5dbde09104b023ce04465ba71aaba0fc4346 before 6f0f19b79c085cc891c418b768f26f7004bd51a4; 7afc5dbde09104b023ce04465ba71aaba0fc4346 before 0f560240b4cc25d3de527deb257cdf072c0102a9; 7afc5dbde09104b023ce04465ba71aaba0fc4346 before 06cb37e2ba6441888f24566a997481d4197b4e32; 7afc5dbde09104b023ce04465ba71aaba0fc4346 before e19478763154674c084defc62ae0d64d79657f91; +3 more · source: vendor
DL
Debian Linux · Debian
10.0 · source: NVD
RR
RUGGEDCOM RST2428P · Siemens
before V3.1 · source: CISA
SX
SCALANCE XCM-/XRM-/XCH-/XRH-300 family · Siemens
before V3.1 · source: CISA
SS
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP · Siemens
V3.1.0 before V3.1.5; V3.1.0 before V3.1.5 · source: CISA
SS
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP · Siemens
V3.1.0 before V3.1.5; V3.1.0 before V3.1.5 · source: CISA
SS
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP · Siemens
V3.1.0 before V3.1.5 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-36934
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-36934
Patch
https://git.kernel.org/stable/c/06cb37e2ba6441888f24566a997481d4197b4e32
Patch
https://git.kernel.org/stable/c/0f560240b4cc25d3de527deb257cdf072c0102a9
Patch
https://git.kernel.org/stable/c/1518b2b498a0109eb6b15755169d3b6607356b35
Patch
https://git.kernel.org/stable/c/6f0f19b79c085cc891c418b768f26f7004bd51a4
Patch
https://git.kernel.org/stable/c/80578ec10335bc15ac35fd1703c22aab34e39fdd
Patch
https://git.kernel.org/stable/c/8c34096c7fdf272fd4c0c37fe411cd2e3ed0ee9f
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
