CVE-2024-56621: scsi: ufs: core: Cancel RTC work during ufshcd_remove()

Published Dec 27, 2024
·
Updated

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

scsi: ufs: core: Cancel RTC work during ufshcdremove()

Currently, RTC work is only cancelled during ufshcdwlsuspend(). When ufshcd is removed in ufshcdremove(), RTC work is not cancelled. Due to this, any further trigger of the RTC work after ufshcdremove() would result in a NULL pointer dereference as below:

Unable to handle kernel NULL pointer dereference at virtual address 00000000000002a4 Workqueue: events ufshcdrtcwork Call trace: rawspinlockirqsave+0x34/0x8c pmruntimegetifactive+0x24/0xb4 ufshcdrtcwork+0x124/0x19c processscheduledworks+0x18c/0x2d8 workerthread+0x144/0x280 kthread+0x11c/0x128 retfromfork+0x10/0x20

Since RTC work accesses the ufshcd internal structures, it should be cancelled when ufshcd is removed. So do that in ufshcdremove(), as per the order in ufshcdinit().

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

3 affected componentsFixes available
Linux Linux kernel>=6.8<6.12.5
Linux Linux kernel=6.13-rc1
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Dec 27, 2024
CVE Published
via MITRE·02:51 PM
Data Sourced
via MITRE·02:51 PM
Description
Mar 27, 2025
Data Sourced
via Launchpad·06:46 PM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·06:53 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-56621?

CVE-2024-56621 has been classified with a moderate severity level.

2

How do I fix CVE-2024-56621?

To resolve CVE-2024-56621, you should update the Linux kernel to versions 6.12.6 or later.

3

What systems are affected by CVE-2024-56621?

CVE-2024-56621 affects the Linux kernel versions 6.8 to 6.12.5 and version 6.13-rc1.

4

What does CVE-2024-56621 involve?

CVE-2024-56621 involves a vulnerability where RTC work is not cancelled properly during the removal of the UFS host controller.

5

Is there a workaround for CVE-2024-56621?

Currently, there are no known workarounds for CVE-2024-56621 apart from applying the kernel update.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203