CVE-2024-35859: block: fix module reference leakage from bdev_open_by_dev error path

Description

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.

Classification

CVE ID: CVE-2024-35859

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 11.44% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://git.kernel.org/stable/c/0e9327c67410b129bf85e5c3a5aaea518328636f
https://git.kernel.org/stable/c/9617cd6f24b294552a817f80f5225431ef67b540

Timeline