CVE-2024-42136
📋 TL;DR
This CVE describes a signed integer overflow vulnerability in the Linux kernel's CD-ROM driver that could lead to kernel crashes or potential privilege escalation. It affects Linux systems with CD-ROM functionality enabled, particularly those using older SCSI ioctls. The vulnerability was discovered through fuzzing with syzkaller and the reintroduced signed integer overflow sanitizer.
💻 Affected Systems
- Linux kernel
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Kernel panic leading to denial of service, or potential privilege escalation if combined with other vulnerabilities to achieve arbitrary code execution in kernel context.
Likely Case
Kernel crash or system instability when specific CD-ROM operations are performed, particularly with deprecated SCSI ioctl calls.
If Mitigated
No impact if the system doesn't use CD-ROM functionality or has the patch applied.
🎯 Exploit Status
Exploitation requires local access and specific CD-ROM operations. The vulnerability was discovered through fuzzing, not active exploitation.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Fixed in kernel commits: 0c97527e916054acc4a46ffb02842988acb2e92b, 3ee21e14c8c329168a0b66bab00ecd18f5d0dee3, e809bc112712da8f7e15822674c6562da6cdf24c, efb905aeb44b0e99c0e6b07865b1885ae0471ebf
Vendor Advisory: https://git.kernel.org/stable/c/0c97527e916054acc4a46ffb02842988acb2e92b
Restart Required: Yes
Instructions:
1. Update Linux kernel to version containing the fix commits. 2. Check your distribution's security advisories for backported patches. 3. Reboot system after kernel update.
🔧 Temporary Workarounds
Disable CD-ROM module
linuxPrevent loading of CD-ROM driver if not needed
echo 'blacklist cdrom' >> /etc/modprobe.d/blacklist-cdrom.conf
rmmod cdrom
Restrict SCSI ioctl access
linuxLimit access to CD-ROM devices for non-privileged users
chmod 600 /dev/sr*
chown root:root /dev/sr*
🧯 If You Can't Patch
- Restrict physical and logical access to CD-ROM devices
- Implement strict user privilege separation and monitoring
🔍 How to Verify
Check if Vulnerable:
Check kernel version and if CD-ROM module is loaded: 'lsmod | grep cdrom' and 'uname -r'
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version is updated and check for presence of fix commits in kernel source
📡 Detection & Monitoring
Log Indicators:
- Kernel logs showing 'UBSAN: signed-integer-overflow' messages
- System crashes related to cdrom driver
Network Indicators:
- None - local vulnerability only
SIEM Query:
source="kernel" AND ("cdrom" OR "signed-integer-overflow" OR "UBSAN")
🔗 References
- https://git.kernel.org/stable/c/0c97527e916054acc4a46ffb02842988acb2e92b
- https://git.kernel.org/stable/c/3ee21e14c8c329168a0b66bab00ecd18f5d0dee3
- https://git.kernel.org/stable/c/e809bc112712da8f7e15822674c6562da6cdf24c
- https://git.kernel.org/stable/c/efb905aeb44b0e99c0e6b07865b1885ae0471ebf
- https://git.kernel.org/stable/c/0c97527e916054acc4a46ffb02842988acb2e92b
- https://git.kernel.org/stable/c/3ee21e14c8c329168a0b66bab00ecd18f5d0dee3
- https://git.kernel.org/stable/c/e809bc112712da8f7e15822674c6562da6cdf24c
- https://git.kernel.org/stable/c/efb905aeb44b0e99c0e6b07865b1885ae0471ebf
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html