{"id":"CVE-2022-50276","aliases":["CVE-2022-50276"],"related":[],"kind":"vulnerability","state":"published","title":"power: supply: fix null pointer dereferencing in power_supply_get_battery_info","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: fix null pointer dereferencing in power_supply_get_battery_info\n\nwhen kmalloc() fail to allocate memory in kasprintf(), propname\nwill be NULL, strcmp() called by of_get_property() will cause\nnull pointer dereference.\n\nSo return ENOMEM if kasprintf() return NULL pointer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: fix null pointer dereferencing in power_supply_get_battery_info\n\nwhen kmalloc() fail to allocate memory in kasprintf(), propname\nwill be NULL, strcmp() called by of_get_property() will cause\nnull pointer dereference.\n\nSo return ENOMEM if kasprintf() return NULL pointer.","source":"cvelist"}],"published":"2025-09-15T14:21:13.542Z","modified":"2026-11-05T20:17:31.630Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"3afb50d7125bcdbf71df843134e96ceffc78c8b8","fixed":"8ea68b4e3fa9392ef9dae303abc8735a033c280f","status":"affected"},{"type":"git","introduced":"3afb50d7125bcdbf71df843134e96ceffc78c8b8","fixed":"5beadb55f4e36fafe5d6df5dcd5f85d803f3f134","status":"affected"},{"type":"git","introduced":"3afb50d7125bcdbf71df843134e96ceffc78c8b8","fixed":"d21534ab4fd7883e1c8037a76671d4e8b6ea14cb","status":"affected"},{"type":"git","introduced":"3afb50d7125bcdbf71df843134e96ceffc78c8b8","fixed":"279af90e65cbdb3e5c4519b0043324d7876bc5ec","status":"affected"},{"type":"git","introduced":"3afb50d7125bcdbf71df843134e96ceffc78c8b8","fixed":"b8131efb89d9f837c9244f900f0fc2699fd1181d","status":"affected"},{"type":"git","introduced":"3afb50d7125bcdbf71df843134e96ceffc78c8b8","fixed":"104bb8a663451404a26331263ce5b96c34504049","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.0","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.0","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8ea68b4e3fa9392ef9dae303abc8735a033c280f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5beadb55f4e36fafe5d6df5dcd5f85d803f3f134","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d21534ab4fd7883e1c8037a76671d4e8b6ea14cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/279af90e65cbdb3e5c4519b0043324d7876bc5ec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8131efb89d9f837c9244f900f0fc2699fd1181d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/104bb8a663451404a26331263ce5b96c34504049","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:08:39.783Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50276","url":"https://www.cve.org/CVERecord?id=CVE-2022-50276","licence":"CVE Terms of Use","modified":"2026-11-05T20:10:32.456Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50276","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50276","licence":"Public domain","modified":"2026-11-05T20:17:31.630Z"}],"updatedAt":"2026-11-25T22:58:21.143Z","epss":{"score":0.00167,"percentile":0.06206,"date":"2026-12-01T12:00:22.000Z"}}