Bug 2348307 (CVE-2022-49140)

Summary: CVE-2022-49140 kernel: Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()"
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerability-draftAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
[REJECTED CVE] In the Linux kernel, the following vulnerability has been resolved: Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()"
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:24:52 UTC
In the Linux kernel, the following vulnerability has been resolved:

Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()"

This reverts commit 6d35d04a9e18990040e87d2bbf72689252669d54.

Both Gabriel and Borislav report that this commit casues a regression
with nbd:

sysfs: cannot create duplicate filename '/dev/block/43:0'

Revert it before 5.18-rc1 and we'll investigage this separately in
due time.

Comment 1 Avinash Hanwate 2025-02-26 13:26:54 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022607-CVE-2022-49140-974f@gregkh/T

Comment 4 Avinash Hanwate 2025-02-26 17:50:55 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022607-CVE-2022-49140-974f@gregkh/T

Comment 7 TEJ RATHI 2025-05-16 05:52:03 UTC
This CVE has been rejected upstream: https://lore.kernel.org/linux-cve-announce/2025022622-REJECTED-06e7@gregkh/