CVE-2022-50582

regulator: core: Prevent integer underflow

State
Published
Severity
Not scored
Published
Oct 22, 2025
Updated
May 11, 2026
Reserved
Oct 22, 2025

Read the record on cve.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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to before b051d9bf98bd9cea312b228e264eb6542a9beb67Affected
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to before e33da263e9658bfe870ea7836fbbd72f246d7dbdAffected
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to before 9f2395316e4845466cb9b5b9b15a171a2c91913cAffected
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to before bfe602d9a349360e60e9051c9cafb9fef204524dAffected
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to before 8d8e16592022c9650df8aedfe6552ed478d7135bAffected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.150 through 5.10.*Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.