Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2022-50582

regulator: core: Prevent integer underflow

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to < b051d9bf98bd9cea312b228e264eb6542a9beb67affected
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to < e33da263e9658bfe870ea7836fbbd72f246d7dbdaffected
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to < 9f2395316e4845466cb9b5b9b15a171a2c91913caffected
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to < bfe602d9a349360e60e9051c9cafb9fef204524daffected
  • f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5 to < 8d8e16592022c9650df8aedfe6552ed478d7135baffected

Linux Linux

Default version status: affected

  • 5.9affected
  • 0 to < 5.9unaffected
  • 5.10.150 to ≤ 5.10.*unaffected
  • 5.15.75 to ≤ 5.15.*unaffected
  • 5.19.17 to ≤ 5.19.*unaffected
  • 6.0.3 to ≤ 6.0.*unaffected
  • 6.1 to ≤ *unaffected

References