Bug 1227619 (CVE-2024-39492)

Summary: VUL-0: CVE-2024-39492: kernel: mailbox: mtk-cmdq: fix pm_runtime_get_sync() warning in mbox shutdown
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: camila.matos, mkoutny
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/413563/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-39492:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-07-10 10:21:56 UTC
In the Linux kernel, the following vulnerability has been resolved:

mailbox: mtk-cmdq: Fix pm_runtime_get_sync() warning in mbox shutdown

The return value of pm_runtime_get_sync() in cmdq_mbox_shutdown()
will return 1 when pm runtime state is active, and we don't want to
get the warning message in this case.

So we change the return value < 0 for WARN_ON().

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-39492
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-39492.mbox
https://git.kernel.org/stable/c/2d42a37a4518478f075ccf848242b4a50e313a46
https://git.kernel.org/stable/c/747a69a119c469121385543f21c2d08562968ccc
https://www.cve.org/CVERecord?id=CVE-2024-39492