# CVE-2024-26842: scsi: ufs: core: Fix shift issue in ufshcd\_clear\_cmd()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2024-04-17T10:10:07.430Z
- **Modified:** 2026-06-17T07:18:28.737Z

## Who should check

- Anyone running Linux \>= adf452611677d048203398f489e2175a9068f9f7, \< 7ac9e18f5d66087cd22751c5c5bf0090eb0038fe; \>= adf452611677d048203398f489e2175a9068f9f7, \< a992425d18e5f7c48931121993c6c69426f2a8fb; \>= adf452611677d048203398f489e2175a9068f9f7, \< b513d30d59bb383a6a5d6b533afcab2cee99a8f8
- Anyone running Linux 6.5

## Description

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

## Affected and fixed versions

- Linux: \>= adf452611677d048203398f489e2175a9068f9f7, \< 7ac9e18f5d66087cd22751c5c5bf0090eb0038fe; \>= adf452611677d048203398f489e2175a9068f9f7, \< a992425d18e5f7c48931121993c6c69426f2a8fb; \>= adf452611677d048203398f489e2175a9068f9f7, \< b513d30d59bb383a6a5d6b533afcab2cee99a8f8 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26842. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26842.md
Affected: Linux >= adf452611677d048203398f489e2175a9068f9f7, < 7ac9e18f5d66087cd22751c5c5bf0090eb0038fe; >= adf452611677d048203398f489e2175a9068f9f7, < a992425d18e5f7c48931121993c6c69426f2a8fb; >= adf452611677d048203398f489e2175a9068f9f7, < b513d30d59bb383a6a5d6b533afcab2cee99a8f8; Linux 6.5
Fixed in: Linux 7ac9e18f5d66087cd22751c5c5bf0090eb0038fe

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26842 being exploited?

There is no confirmed exploitation: CVE-2024-26842 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-26842?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26842?

Linux \>= adf452611677d048203398f489e2175a9068f9f7, \< 7ac9e18f5d66087cd22751c5c5bf0090eb0038fe; \>= adf452611677d048203398f489e2175a9068f9f7, \< a992425d18e5f7c48931121993c6c69426f2a8fb; \>= adf452611677d048203398f489e2175a9068f9f7, \< b513d30d59bb383a6a5d6b533afcab2cee99a8f8; Linux 6.5.

### Is there a fix for CVE-2024-26842?

Yes. Fixed in Linux 7ac9e18f5d66087cd22751c5c5bf0090eb0038fe. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26842?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/7ac9e18f5d66087cd22751c5c5bf0090eb0038fe>
- patch: <https://git.kernel.org/stable/c/a992425d18e5f7c48931121993c6c69426f2a8fb>
- patch: <https://git.kernel.org/stable/c/b513d30d59bb383a6a5d6b533afcab2cee99a8f8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26842>

HTML: <https://flawdb.com/CVE-2024-26842> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26842>
