Bug 1224593 (CVE-2024-35859)

Summary: VUL-0: CVE-2024-35859: kernel: block: fix module reference leakage from bdev_open_by_dev error path
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: gabriele.sonnu, jlee
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/406459/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-35859: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-05-20 15:29:53 UTC
In the Linux kernel, the following vulnerability has been resolved:

block: fix module reference leakage from bdev_open_by_dev error path

At the time bdev_may_open() is called, module reference is grabbed
already, hence module reference should be released if bdev_may_open()
failed.

This problem is found by code review.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-35859
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-35859.mbox
https://git.kernel.org/stable/c/0e9327c67410b129bf85e5c3a5aaea518328636f
https://git.kernel.org/stable/c/9617cd6f24b294552a817f80f5225431ef67b540
https://www.cve.org/CVERecord?id=CVE-2024-35859
https://bugzilla.redhat.com/show_bug.cgi?id=2281243
Comment 1 Joey Lee 2024-05-21 08:50:54 UTC
https://www.suse.com/security/cve/CVE-2024-35859.html
cvss 5.5
Comment 3 Joey Lee 2024-05-24 10:14:27 UTC
Nothing to be done
Comment 4 Gabriele Sonnu 2024-06-10 12:33:56 UTC
All done, closing.