CVE-2024-26818

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-26818
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26818.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26818
Downstream
Published
2024-04-17T10:15:08Z
Modified
2025-03-27T21:07:41Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

tools/rtla: Fix clang warning about mount_point var size

clang is reporting this warning:

$ make HOSTCC=clang CC=clang LLVMIAS=1 [...] clang -O -g -DVERSION=\"6.8.0-rc3\" -flto=auto -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-DFORTIFYSOURCE=2 -Wp,-DGLIBCXX_ASSERTIONS $(pkg-config --cflags libtracefs) -c -o src/utils.o src/utils.c

src/utils.c:548:66: warning: 'fscanf' may overflow; destination buffer in argument 3 has size 1024, but the corresponding specifier may require size 1025 [-Wfortify-source] 548 | while (fscanf(fp, "%s %" STR(MAX_PATH) "s %99s %s %d %d\n", mount_point, type) == 2) { | ^

Increase mountpoint variable size to MAXPATH+1 to avoid the overflow.

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.7.7-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}