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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-08-17T09:09:31.867Z
- Modified: 2026-06-17T07:49:15.157Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

mailbox: mtk-cmdq: Move devm_mbox_controller_register() after devm_pm_runtime_enable()

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

According to the call tracei below:
  cmdq_mbox_shutdown
  mbox_free_channel
  mbox_controller_unregister
  __devm_mbox_controller_unregister
  ...

The root cause can be deduced to be calling pm_runtime_get_sync() after
calling pm_runtime_disable() as observed below:
1. CMDQ driver uses devm_mbox_controller_register() in cmdq_probe()
   to bind the cmdq device to the mbox_controller, so
   devm_mbox_controller_unregister() will automatically unregister
   the device bound to the mailbox controller when the device-managed
   resource is removed. That means devm_mbox_controller_unregister()
   and cmdq_mbox_shoutdown() will be called after cmdq_remove().
2. CMDQ driver also uses devm_pm_runtime_enable() in cmdq_probe() after
   devm_mbox_controller_register(), so that devm_pm_runtime_disable()
   will be called after cmdq_remove(), but before
   devm_mbox_controller_unregister().

To fix this problem, cmdq_probe() needs to move
devm_mbox_controller_register() after devm_pm_runtime_enable() to make
devm_pm_runtime_disable() be called after
devm_mbox_controller_unregister().

(As written by CVE List.)

## Affected

- Linux Linux: from 623a6143a845bd485b00ba684f0ccef11835edab before 1403991a40b94438a2acc749bf05c117abdb34f9; from 623a6143a845bd485b00ba684f0ccef11835edab before d00df6700ad10974a7e20646956f4ff22cdbe0ec; from 623a6143a845bd485b00ba684f0ccef11835edab before 11fa625b45faf0649118b9deaf2d31c86ac41911; from 623a6143a845bd485b00ba684f0ccef11835edab before a8bd68e4329f9a0ad1b878733e0f80be6a971649; 4.19 (not affected: before 4.19; from 6.1.120 up to 6.1.*; from 6.6.64 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 4.19 before 6.1.120; from 6.2 before 6.6.64; from 6.7 before 6.10.3

## References

- <https://git.kernel.org/stable/c/1403991a40b94438a2acc749bf05c117abdb34f9> (patch)
- <https://git.kernel.org/stable/c/d00df6700ad10974a7e20646956f4ff22cdbe0ec> (patch)
- <https://git.kernel.org/stable/c/11fa625b45faf0649118b9deaf2d31c86ac41911> (patch)
- <https://git.kernel.org/stable/c/a8bd68e4329f9a0ad1b878733e0f80be6a971649> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

- CVE List: [CVE-2024-42319](https://www.cve.org/CVERecord?id=CVE-2024-42319), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-42319](https://nvd.nist.gov/vuln/detail/CVE-2024-42319), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42319 · Whole record: https://cve.day/CVE-2024-42319.json · Rebuilt by cve.day 2026-11-25T22:58:44.484Z
