{"id":"CVE-2022-50582","summary":"regulator: core: Prevent integer underflow","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nregulator: core: Prevent integer underflow\n\nBy using a ratio of delay to poll_enabled_time that is not integer\ntime_remaining underflows and does not exit the loop as expected.\nAs delay could be derived from DT and poll_enabled_time is defined\nin the driver this can easily happen.\n\nUse a signed iterator to make sure that the loop exits once\nthe remaining time is negative.","modified":"2026-04-02T08:28:39.170113Z","published":"2025-10-22T13:23:34.037Z","related":["SUSE-SU-2025:4111-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4320-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50582.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/8d8e16592022c9650df8aedfe6552ed478d7135b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f2395316e4845466cb9b5b9b15a171a2c91913c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b051d9bf98bd9cea312b228e264eb6542a9beb67"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bfe602d9a349360e60e9051c9cafb9fef204524d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e33da263e9658bfe870ea7836fbbd72f246d7dbd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50582.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50582"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f7d7ad42a9dc2d63cab6a79fe31e6732a30dacf5"},{"fixed":"b051d9bf98bd9cea312b228e264eb6542a9beb67"},{"fixed":"e33da263e9658bfe870ea7836fbbd72f246d7dbd"},{"fixed":"9f2395316e4845466cb9b5b9b15a171a2c91913c"},{"fixed":"bfe602d9a349360e60e9051c9cafb9fef204524d"},{"fixed":"8d8e16592022c9650df8aedfe6552ed478d7135b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50582.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.9.0"},{"fixed":"5.10.150"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.75"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.19.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.20.0"},{"fixed":"6.0.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50582.json"}}],"schema_version":"1.7.5"}