Bug 1224950 (CVE-2023-52785) - VUL-0: CVE-2023-52785: kernel: scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR
Summary: VUL-0: CVE-2023-52785: kernel: scsi: ufs: core: Fix racing issue between ufsh...
Status: IN_PROGRESS
Alias: CVE-2023-52785
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/407156/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-52785:4.7:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 12:14 UTC by SMASH SMASH
Modified: 2024-07-16 17:55 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-22 12:14:23 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

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

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

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-52785
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2023/CVE-2023-52785.mbox
https://git.kernel.org/stable/c/8f15a7e3c054d960bbd1521110700450bbf798a1
https://git.kernel.org/stable/c/f84d461f33a6b27304d468d9cfb56c0cefdb4ee7
https://git.kernel.org/stable/c/27900d7119c464b43cd9eac69c85884d17bae240
https://www.cve.org/CVERecord?id=CVE-2023-52785
Comment 2 Hannes Reinecke 2024-06-06 10:38:07 UTC
Lee, can you handle it?
Comment 3 Lee Duncan 2024-07-16 17:55:45 UTC
(In reply to Hannes Reinecke from comment #2)
> Lee, can you handle it?

Looks like you took care if it a month ago. Sorry I didn't beat you to it!

I believe this is done, but sending back to security to make sure.