VDB

CVE-2024-36934

CVE-2024-36934 PUBLISHED

bna: ensure the copied buf is NUL terminated

Reported by linux · Published May 30, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxe19478763154674c084defc62ae0d64d79657f91, 80578ec10335bc15ac35fd1703c22aab34e39fdd, 6f0f19b79c085cc891c418b768f26f7004bd51a4, 3.3, 1518b2b498a0109eb6b15755169d3b6607356b35, 0f560240b4cc25d3de527deb257cdf072c0102a9, 06cb37e2ba6441888f24566a997481d4197b4e32

Affected products

VendorProductVersions
LinuxLinux7afc5dbde09104b023ce04465ba71aaba0fc4346, 7afc5dbde09104b023ce04465ba71aaba0fc4346, 7afc5dbde09104b023ce04465ba71aaba0fc4346
LinuxLinux3.3, 0, 4.19.314
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0
LinuxLinux6.6.31, 7afc5dbde09104b023ce04465ba71aaba0fc4346, 7afc5dbde09104b023ce04465ba71aaba0fc4346
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
linuxlinux_kernel3.3, 3.3, 3.3
SiemensRUGGEDCOM RST2428P0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 family0

Timeline

  • May 30, 2024 CVE Published
  • May 31, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (14 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 9, 2026 Security Advisory (350 in total, the first dated here)
  • Jan 9, 2026 CVE Updated
  • Mar 30, 2026 Distribution Patch (254 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-36934
vulnetix vdb fixes CVE-2024-36934

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-36934/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›