Bug 2348643 (CVE-2024-58017) - CVE-2024-58017 kernel: printk: Fix signed integer overflow when defining LOG_BUF_LEN_MAX
Summary: CVE-2024-58017 kernel: printk: Fix signed integer overflow when defining LOG_...
Keywords:
Status: NEW
Alias: CVE-2024-58017
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-27 03:06 UTC by OSIDB Bzimport
Modified: 2025-02-28 04:39 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-27 03:06:14 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.