{"id":"CVE-2022-50250","summary":"regulator: core: fix use_count leakage when handling boot-on","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nregulator: core: fix use_count leakage when handling boot-on\n\nI found a use_count leakage towards supply regulator of rdev with\nboot-on option.\n\n┌───────────────────┐           ┌───────────────────┐\n│  regulator_dev A  │           │  regulator_dev B  │\n│     (boot-on)     │           │     (boot-on)     │\n│    use_count=0    │◀──supply──│    use_count=1    │\n│                   │           │                   │\n└───────────────────┘           └───────────────────┘\n\nIn case of rdev(A) configured with `regulator-boot-on', the use_count\nof supplying regulator(B) will increment inside\nregulator_enable(rdev-\u003esupply).\n\nThus, B will acts like always-on, and further balanced\nregulator_enable/disable cannot actually disable it anymore.\n\nHowever, B was also configured with `regulator-boot-on', we wish it\ncould be disabled afterwards.","modified":"2026-04-02T08:28:21.388349Z","published":"2025-09-15T14:02:10.117Z","related":["SUSE-SU-2025:03615-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3761-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50250.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0591b14ce0398125439c759f889647369aa616a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b737246ff50f810d6ab4be13c1388a07f0c14b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4dd6e1cc9c7403f1ee1b7eee85bc31b797ae8347"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5bfc53df288e8ea54ca6866fb92034214940183f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc6c381df5793ebcf32db88a3e65acf7870379fc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dc3391d49479bc2bf8a2b88dbf86fdd800882fee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/feb847e6591e8c7a09cc39721cc9ca74fd9a5d80"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50250.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50250"},{"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":"dc1b1d7faf616ed663d0bba9be5abb4d1ed35d01"},{"fixed":"dc3391d49479bc2bf8a2b88dbf86fdd800882fee"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f44b07472f29ae313ce875dc7b9c75b100c608b8"},{"fixed":"5bfc53df288e8ea54ca6866fb92034214940183f"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"089b3f61ecfc43ca4ea26d595e1d31ead6de3f7b"},{"fixed":"4b737246ff50f810d6ab4be13c1388a07f0c14b1"},{"fixed":"feb847e6591e8c7a09cc39721cc9ca74fd9a5d80"},{"fixed":"4dd6e1cc9c7403f1ee1b7eee85bc31b797ae8347"},{"fixed":"bc6c381df5793ebcf32db88a3e65acf7870379fc"},{"fixed":"0591b14ce0398125439c759f889647369aa616a0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50250.json"}}],"schema_version":"1.7.5"}