CVE-2024-42319: mailbox: mtk-cmdq: Move devm_mbox_controller_register() after devm_pm_runtime_enable()

Published Aug 17, 2024
·
Updated

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

mailbox: mtk-cmdq: Move devmmboxcontrollerregister() after devmpmruntimeenable()

When mtk-cmdq unbinds, a WARNON message with condition pmruntimegetsync() < 0 occurs.

According to the call tracei below: cmdqmboxshutdown mboxfreechannel mboxcontrollerunregister devmmboxcontrollerunregister ...

The root cause can be deduced to be calling pmruntimegetsync() after calling pmruntimedisable() as observed below: 1. CMDQ driver uses devmmboxcontrollerregister() in cmdqprobe() to bind the cmdq device to the mboxcontroller, so devmmboxcontrollerunregister() will automatically unregister the device bound to the mailbox controller when the device-managed resource is removed. That means devmmboxcontrollerunregister() and cmdqmboxshoutdown() will be called after cmdqremove(). 2. CMDQ driver also uses devmpmruntimeenable() in cmdqprobe() after devmmboxcontrollerregister(), so that devmpmruntimedisable() will be called after cmdqremove(), but before devmmboxcontrollerunregister().

To fix this problem, cmdqprobe() needs to move devmmboxcontrollerregister() after devmpmruntimeenable() to make devmpmruntimedisable() be called after devmmboxcontrollerunregister().

Affected Software

5 affected componentsFixes available
debian/linux<=5.10.223-1, <=5.10.234-1
6.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Linux Linux kernel>=4.19<6.1.120
Linux Linux kernel>=6.2<6.6.64
Linux Linux kernel>=6.7<6.10.3

Event History

Aug 17, 2024
CVE Published
via MITRE·09:09 AM
Data Sourced
via MITRE·09:09 AM
Description
Data Sourced
via NVD·09:15 AM
Description
Data Sourced
via NVD·09:15 AM
RemedySeverityAffected Software
Apr 27, 2025
Data Sourced
via Ubuntu·07:37 PM
RemedyDescriptionSeverityAffected Software
Oct 10, 2025
Data Sourced
via Microsoft·02:35 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-42319?

CVE-2024-42319 has a severity rating that indicates it could lead to warnings and potential unbinding issues in the Linux kernel.

2

How do I fix CVE-2024-42319?

To fix CVE-2024-42319, update to the latest Linux kernel versions 6.1.123-1, 6.12.10-1, or 6.12.11-1.

3

Which Linux kernel versions are affected by CVE-2024-42319?

CVE-2024-42319 affects Linux kernel versions up to and including 6.1.119-1 and between 5.10.223-1 and 5.10.226-1.

4

What components are impacted by CVE-2024-42319?

CVE-2024-42319 impacts the mtk-cmdq mailbox functionality within the Linux kernel.

5

Is there a workaround for CVE-2024-42319?

There is no specific documented workaround for CVE-2024-42319; upgrading to a non-vulnerable version is recommended.

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