CVE-2024-26842·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Fix shift issue in ufshcd_clear_cmd() When task_tag >= 32 (in MCQ mode) and sizeof(unsigned int) == 4, 1U << task_tag will out of bounds for a u32 mask. Fix this up to prevent SHIFT_ISSUE (bitwise shifts that are out of bounds for their data type). [name:debug_monitors&]Unexpected kernel BRK exception at EL1 [name:traps&]Internal error: BRK handler: 00000000f2005514 [#1] PREEMPT SMP [name:mediatek_cpufreq_hw&]cpufreq stop DVFS log done [name:mrdump&]Kernel Offset: 0x1ba5800000 from 0xffffffc008000000 [name:mrdump&]PHYS_OFFSET: 0x80000000 [name:mrdump&]pstate: 22400005 (nzCv daif +PAN -UAO) [name:mrdump&]pc : [0xffffffdbaf52bb2c] ufshcd_clear_cmd+0x280/0x288 [name:mrdump&]lr : [0xffffffdbaf52a774] ufshcd_wait_for_dev_cmd+0x3e4/0x82c [name:mrdump&]sp : ffffffc0081471b0 <snip> Workqueue: ufs_eh_wq_0 ufshcd_err_handler Call trace: dump_backtrace+0xf8/0x144 show_stack+0x18/0x24 dump_stack_lvl+0x78/0x9c dump_stack+0x18/0x44 mrdump_common_die+0x254/0x480 [mrdump] ipanic_die+0x20/0x30 [mrdump] notify_die+0x15c/0x204 die+0x10c/0x5f8 arm64_notify_die+0x74/0x13c do_debug_exception+0x164/0x26c el1_dbg+0x64/0x80 el1h_64_sync_handler+0x3c/0x90 el1h_64_sync+0x68/0x6c ufshcd_clear_cmd+0x280/0x288 ufshcd_wait_for_dev_cmd+0x3e4/0x82c ufshcd_exec_dev_cmd+0x5bc/0x9ac ufshcd_verify_dev_init+0x84/0x1c8 ufshcd_probe_hba+0x724/0x1ce0 ufshcd_host_reset_and_restore+0x260/0x574 ufshcd_reset_and_restore+0x138/0xbd0 ufshcd_err_handler+0x1218/0x2f28 process_one_work+0x5fc/0x1140 worker_thread+0x7d8/0xe20 kthread+0x25c/0x468 ret_from_fork+0x10/0x20
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.7
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 3% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2024-26842 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.7
Until: 6.7.7
Fixed in: 6.7.7
How to fix this CVE
Update your Linux kernel to version 6.7.7 or later to resolve a critical bitwise shift vulnerability in the UFS (Ultra Fast Storage) subsystem. This vulnerability affects multi-queue (MCQ) mode operations where task tags >= 32 cause out-of-bounds bit shifts in the ufshcd_clear_cmd() function, potentially triggering kernel panics. Apply the patch immediately on systems using UFS storage controllers.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against 6.7.7 — versions 6.7.0 through 6.7.6 are vulnerable
- Step 2: Verify UFS subsystem is in use by running `lsmod | grep ufs` — if output appears, the affected driver is loaded
- Step 3: Search kernel logs for panic indicators with `dmesg | grep -i 'ufshcd_clear_cmd\|SHIFT_ISSUE\|BRK exception'` to identify past exploitation attempts
- Step 4: After patching, reboot the system with `sudo reboot` and confirm new kernel version with `uname -r` to verify the fix is active
FAQ
What is CVE-2024-26842?
CVE-2024-26842 is a kernel memory safety vulnerability in the Linux UFS storage driver where a bitwise shift operation exceeds the data type boundary when handling task tags in multi-queue mode (task_tag >= 32 on 32-bit systems). This triggers a kernel BRK exception and causes the system to panic.
Is CVE-2024-26842 being actively exploited?
No, CVE-2024-26842 is not listed in CISA's Known Exploited Vulnerabilities catalog and has no public exploit code available. However, it causes immediate kernel crashes on affected systems, making it a high-priority stability issue.
What versions of Kernel are affected by CVE-2024-26842?
Linux kernel versions 6.7.0 through 6.7.6 are vulnerable. The fix is included in kernel 6.7.7 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-26842?
Run `uname -r` to get your kernel version. If it shows 6.7.0–6.7.6 and UFS storage is in use (check with `lsmod | grep ufs`), your system is vulnerable. Then run `sudo apt update && sudo apt install --only-upgrade linux-image-generic` (Ubuntu) or equivalent for your distro.
Does Defensia detect CVE-2024-26842?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-26842 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/7ac9e18f5d66087cd22751c5c5bf0090eb0038fe
- https://git.kernel.org/stable/c/a992425d18e5f7c48931121993c6c69426f2a8fb
- https://git.kernel.org/stable/c/b513d30d59bb383a6a5d6b533afcab2cee99a8f8
- https://git.kernel.org/stable/c/7ac9e18f5d66087cd22751c5c5bf0090eb0038fe
- https://git.kernel.org/stable/c/a992425d18e5f7c48931121993c6c69426f2a8fb
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-26842. Free for 1 server.
Get started free