CVE Catalog

CVE-2024-58017

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.26%

16th percentile - higher than 16% of all known CVEs

Summary

In the Linux kernel, a signed integer overflow occurs when defining LOG_BUF_LEN_MAX. Shifting 1 << 31 on a 32-bit int causes undefined behavior.

Risk Assessment

This may lead to undefined kernel behavior, potentially causing system crashes or other stability issues. It affects systems running vulnerable Linux kernel versions.

Recommendation

Update the Linux kernel to a version that includes the fix, which casts 1 to u32 before shifting. Regularly apply kernel security updates.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: printk: Fix signed integer overflow when defining LOG_BUF_LEN_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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS