CVE-2023-52785

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52785
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52785.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52785
Downstream
Published
2024-05-21T15:31:03Z
Modified
2025-10-16T13:32:36.666650Z
Summary
scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR
Details

In the Linux kernel, the following vulnerability has been resolved:

scsi: ufs: core: Fix racing issue between ufshcdmcqabort() and ISR

If command timeout happens and cq complete IRQ is raised at the same time, ufshcdmcqabort clears lprb->cmd and a NULL pointer deref happens in the ISR. Error log:

ufshcdabort: Device abort task at tag 18 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000108 pc : [0xffffffe27ef867ac] scsidmaunmap+0xc/0x44 lr : [0xffffffe27f1b898c] ufshcdreleasescsicmd+0x24/0x114

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f1304d4420777f82a1d844c606db3d9eca841765
Fixed
8f15a7e3c054d960bbd1521110700450bbf798a1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f1304d4420777f82a1d844c606db3d9eca841765
Fixed
f84d461f33a6b27304d468d9cfb56c0cefdb4ee7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f1304d4420777f82a1d844c606db3d9eca841765
Fixed
27900d7119c464b43cd9eac69c85884d17bae240

Affected versions

v6.*

v6.4
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.5.1
v6.5.10
v6.5.11
v6.5.12
v6.5.2
v6.5.3
v6.5.4
v6.5.5
v6.5.6
v6.5.7
v6.5.8
v6.5.9
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.6.1
v6.6.2

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.5.0
Fixed
6.5.13
Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.3