lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022607-CVE-2022-49143-d2d8@gregkh>
Date: Wed, 26 Feb 2025 02:55:48 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2022-49143: nbd: fix possible overflow on 'first_minor' in nbd_dev_add()

Description
===========

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

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

When 'index' is a big numbers, it may become negative which forced
to 'int'. then 'index << part_shift' might overflow to a positive
value that is not greater than '0xfffff', then sysfs might complains
about duplicate creation. Because of this, move the 'index' judgment
to the front will fix it and be better.

The Linux kernel CVE team has assigned CVE-2022-49143 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 4.11 with commit b0d9111a2d53785847763c64c40af2d4c4c5a8b7 and fixed in 5.15.34 with commit 5142720dbe51befeb25f204f912ef1ad93fba343
	Issue introduced in 4.11 with commit b0d9111a2d53785847763c64c40af2d4c4c5a8b7 and fixed in 5.16.19 with commit d42740aab3ea29578d11a042bb50ded12ad3aa8a
	Issue introduced in 4.11 with commit b0d9111a2d53785847763c64c40af2d4c4c5a8b7 and fixed in 5.17.2 with commit c6399f6f2f84921feebbf985e3819b1ad851ebe5
	Issue introduced in 4.11 with commit b0d9111a2d53785847763c64c40af2d4c4c5a8b7 and fixed in 5.18 with commit 6d35d04a9e18990040e87d2bbf72689252669d54

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2022-49143
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/block/nbd.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/5142720dbe51befeb25f204f912ef1ad93fba343
	https://git.kernel.org/stable/c/d42740aab3ea29578d11a042bb50ded12ad3aa8a
	https://git.kernel.org/stable/c/c6399f6f2f84921feebbf985e3819b1ad851ebe5
	https://git.kernel.org/stable/c/6d35d04a9e18990040e87d2bbf72689252669d54

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ