power: supply: wm97xx: Fix NULL pointer dereference in power_supply_changed()

Summary

CVECVE-2026-45869
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-27 14:17:00 UTC
Updated2026-06-25 21:06:30 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: power: supply: wm97xx: Fix NULL pointer dereference in power_supply_changed() In `probe()`, `request_irq()` is called before allocating/registering a `power_supply` handle. If an interrupt is fired between the call to `request_irq()` and `power_supply_register()`, the `power_supply` handle will be used uninitialized in `power_supply_changed()` in `wm97xx_bat_update()` (triggered from the interrupt handler). This will lead to a `NULL` pointer dereference since Fix this racy `NULL` pointer dereference by making sure the IRQ is requested _after_ the registration of the `power_supply` handle. Since the IRQ is the last thing requests in the `probe()` now, remove the error path for freeing it. Instead add one for unregistering the `power_supply` handle when IRQ request fails.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.000240000 probability, percentile 0.073320000 (date 2026-06-01)

Problem Types: CWE-476

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 7c87942aef52d2120e95ff1dec739998b9f95a78 3d7b5391bb95505b3581c1fb77150c467ab92864 git Not specified
CNA Linux Linux affected 7c87942aef52d2120e95ff1dec739998b9f95a78 438f9a303ea8b55162b2d5376490c2ab3ec165a0 git Not specified
CNA Linux Linux affected 7c87942aef52d2120e95ff1dec739998b9f95a78 9b7d77cb046b4487e8e511e04e62b6f416ce845c git Not specified
CNA Linux Linux affected 7c87942aef52d2120e95ff1dec739998b9f95a78 86183153c299e8bb1839e717286d6c6f39508a59 git Not specified
CNA Linux Linux affected 7c87942aef52d2120e95ff1dec739998b9f95a78 93bdf715d33cf5ee01c58e8546c2469c71ce082a git Not specified
CNA Linux Linux affected 7c87942aef52d2120e95ff1dec739998b9f95a78 c0def811ad8d642dca9b6d31a198cc39f5f90837 git Not specified
CNA Linux Linux affected 7c87942aef52d2120e95ff1dec739998b9f95a78 dfaf235d5a6b60cbf115a14a656946303ad007b7 git Not specified
CNA Linux Linux affected 7c87942aef52d2120e95ff1dec739998b9f95a78 39fe0eac6d755ef215026518985fcf8de9360e9e git Not specified
CNA Linux Linux affected 2.6.32 Not specified
CNA Linux Linux unaffected 2.6.32 semver Not specified
CNA Linux Linux unaffected 5.10.252 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.202 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.165 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.128 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.75 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.14 6.18.* semver Not specified
CNA Linux Linux unaffected 6.19.4 6.19.* semver Not specified
CNA Linux Linux unaffected 7.0 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/3d7b5391bb95505b3581c1fb77150c467ab92864 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/dfaf235d5a6b60cbf115a14a656946303ad007b7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/86183153c299e8bb1839e717286d6c6f39508a59 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/39fe0eac6d755ef215026518985fcf8de9360e9e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/93bdf715d33cf5ee01c58e8546c2469c71ce082a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/438f9a303ea8b55162b2d5376490c2ab3ec165a0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/c0def811ad8d642dca9b6d31a198cc39f5f90837 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/9b7d77cb046b4487e8e511e04e62b6f416ce845c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report