CVE-2024-58017

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-58017
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-58017.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-58017
Downstream
Related
Published
2025-02-27T03:15:12Z
Modified
2025-08-09T20:01:28Z
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:

printk: Fix signed integer overflow when defining LOGBUFLEN_MAX

Shifting 1 << 31 on a 32-bit int causes signed integer overflow, which leads to undefined behavior. To prevent this, cast 1 to u32 before performing the shift, ensuring well-defined behavior.

This change explicitly avoids any potential overflow by ensuring that the shift occurs on an unsigned 32-bit integer.

References

Affected packages