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: <2025102210-CVE-2022-50582-1ac9@gregkh>
Date: Wed, 22 Oct 2025 15:24:30 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50582: regulator: core: Prevent integer underflow

From: Greg Kroah-Hartman <gregkh@...nel.org>

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

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

regulator: core: Prevent integer underflow

By using a ratio of delay to poll_enabled_time that is not integer
time_remaining underflows and does not exit the loop as expected.
As delay could be derived from DT and poll_enabled_time is defined
in the driver this can easily happen.

Use a signed iterator to make sure that the loop exits once
the remaining time is negative.

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


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

	Fixed in 5.10.150 with commit b051d9bf98bd9cea312b228e264eb6542a9beb67
	Fixed in 5.15.75 with commit e33da263e9658bfe870ea7836fbbd72f246d7dbd
	Fixed in 5.19.17 with commit 9f2395316e4845466cb9b5b9b15a171a2c91913c
	Fixed in 6.0.3 with commit bfe602d9a349360e60e9051c9cafb9fef204524d
	Fixed in 6.1 with commit 8d8e16592022c9650df8aedfe6552ed478d7135b

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-50582
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/regulator/core.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/b051d9bf98bd9cea312b228e264eb6542a9beb67
	https://git.kernel.org/stable/c/e33da263e9658bfe870ea7836fbbd72f246d7dbd
	https://git.kernel.org/stable/c/9f2395316e4845466cb9b5b9b15a171a2c91913c
	https://git.kernel.org/stable/c/bfe602d9a349360e60e9051c9cafb9fef204524d
	https://git.kernel.org/stable/c/8d8e16592022c9650df8aedfe6552ed478d7135b

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ