# CVE-2022-48942: hwmon: Handle failure to register sensor with thermal zone correctly

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-08-22T03:30:12.812Z
- **Modified:** 2026-06-17T05:16:40.407Z

## Who should check

- Anyone running Linux \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 962b2a3188bfa5388756ffbc47dfa5ff59cb8011; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 7efe8499cb90651c540753f4269d2d43ede14223; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 8a1969e14ad93663f9a3ed02ccc2138da9956a0e; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 1b5f517cca36292076d9e38fa6e33a257703e62e
- Anyone running Linux 5.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

hwmon: Handle failure to register sensor with thermal zone correctly

If an attempt is made to a sensor with a thermal zone and it fails,
the call to devm\_thermal\_zone\_of\_sensor\_register() may return -ENODEV.
This may result in crashes similar to the following.

Unable to handle kernel NULL pointer dereference at virtual address 00000000000003cd
...
Internal error: Oops: 96000021 \[\#1\] PREEMPT SMP
...
pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : mutex\_lock+0x18/0x60
lr : thermal\_zone\_device\_update+0x40/0x2e0
sp : ffff800014c4fc60
x29: ffff800014c4fc60 x28: ffff365ee3f6e000 x27: ffffdde218426790
x26: ffff365ee3f6e000 x25: 0000000000000000 x24: ffff365ee3f6e000
x23: ffffdde218426870 x22: ffff365ee3f6e000 x21: 00000000000003cd
x20: ffff365ee8bf3308 x19: ffffffffffffffed x18: 0000000000000000
x17: ffffdde21842689c x16: ffffdde1cb7a0b7c x15: 0000000000000040
x14: ffffdde21a4889a0 x13: 0000000000000228 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
x8 : 0000000001120000 x7 : 0000000000000001 x6 : 0000000000000000
x5 : 0068000878e20f07 x4 : 0000000000000000 x3 : 00000000000003cd
x2 : ffff365ee3f6e000 x1 : 0000000000000000 x0 : 00000000000003cd
Call trace:
 mutex\_lock+0x18/0x60
 hwmon\_notify\_event+0xfc/0x110
 0xffffdde1cb7a0a90
 0xffffdde1cb7a0b7c
 irq\_thread\_fn+0x2c/0xa0
 irq\_thread+0x134/0x240
 kthread+0x178/0x190
 ret\_from\_fork+0x10/0x20
Code: d503201f d503201f d2800001 aa0103e4 (c8e47c02)

Jon Hunter reports that the exact call sequence is:

hwmon\_notify\_event()
  --\> hwmon\_thermal\_notify()
    --\> thermal\_zone\_device\_update()
      --\> update\_temperature()
        --\> mutex\_lock()

The hwmon core needs to handle all errors returned from calls
to devm\_thermal\_zone\_of\_sensor\_register(). If the call fails
with -ENODEV, report that the sensor was not attached to a
thermal zone  but continue to register the hwmon device.

## Affected and fixed versions

- Linux: \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 962b2a3188bfa5388756ffbc47dfa5ff59cb8011; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 7efe8499cb90651c540753f4269d2d43ede14223; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 8a1969e14ad93663f9a3ed02ccc2138da9956a0e; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 1b5f517cca36292076d9e38fa6e33a257703e62e (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 1b5f517cca36292076d9e38fa6e33a257703e62e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48942. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48942.md
Affected: Linux >= 1597b374af22266266e1e20612208c4b11359ad4, < 962b2a3188bfa5388756ffbc47dfa5ff59cb8011; >= 1597b374af22266266e1e20612208c4b11359ad4, < 7efe8499cb90651c540753f4269d2d43ede14223; >= 1597b374af22266266e1e20612208c4b11359ad4, < 8a1969e14ad93663f9a3ed02ccc2138da9956a0e; >= 1597b374af22266266e1e20…
Fixed in: Linux 962b2a3188bfa5388756ffbc47dfa5ff59cb8011, Linux 7efe8499cb90651c540753f4269d2d43ede14223, Linux 8a1969e14ad93663f9a3ed02ccc2138da9956a0e, Linux 1b5f517cca36292076d9e38fa6e33a257703e62e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48942 being exploited?

There is no confirmed exploitation: CVE-2022-48942 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48942?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48942?

Linux \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 962b2a3188bfa5388756ffbc47dfa5ff59cb8011; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 7efe8499cb90651c540753f4269d2d43ede14223; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 8a1969e14ad93663f9a3ed02ccc2138da9956a0e; \>= 1597b374af22266266e1e20612208c4b11359ad4, \< 1b5f517cca36292076d9e38fa6e33a257703e62e; Linux 5.8.

### Is there a fix for CVE-2022-48942?

Yes. Fixed in Linux 962b2a3188bfa5388756ffbc47dfa5ff59cb8011, Linux 7efe8499cb90651c540753f4269d2d43ede14223, Linux 8a1969e14ad93663f9a3ed02ccc2138da9956a0e, Linux 1b5f517cca36292076d9e38fa6e33a257703e62e. Upgrade Linux to 1b5f517cca36292076d9e38fa6e33a257703e62e or later.

### How do I check if I'm affected by CVE-2022-48942?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/962b2a3188bfa5388756ffbc47dfa5ff59cb8011>
- patch: <https://git.kernel.org/stable/c/7efe8499cb90651c540753f4269d2d43ede14223>
- patch: <https://git.kernel.org/stable/c/8a1969e14ad93663f9a3ed02ccc2138da9956a0e>
- patch: <https://git.kernel.org/stable/c/1b5f517cca36292076d9e38fa6e33a257703e62e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48942>

HTML: <https://flawdb.com/CVE-2022-48942> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48942>
