CVE-2022-49010: hwmon: (coretemp) Check for null before removing sysfs attrs
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (coretemp) Check for null before removing sysfs attrs
If coretemp_add_core() gets an error then pdata->core_data[indx]
is already NULL and has been kfreed. Don't pass that to
sysfs_remove_group() as that will crash in sysfs_remove_group().
[Shortened for readability]
[91854.020159] sysfs: cannot create duplicate filename '/devices/platform/coretemp.0/hwmon/hwmon2/temp20_label'
<cpu offline>
[91855.126115] BUG: kernel NULL pointer dereference, address: 0000000000000188
[91855.165103] #PF: supervisor read access in kernel mode
[91855.194506] #PF: error_code(0x0000) - not-present page
[91855.224445] PGD 0 P4D 0
[91855.238508] Oops: 0000 [#1] PREEMPT SMP PTI
...
[91855.342716] RIP: 0010:sysfs_remove_group+0xc/0x80
...
[91855.796571] Call Trace:
[91855.810524] coretemp_cpu_offline+0x12b/0x1dd [coretemp]
[91855.841738] ? coretemp_cpu_online+0x180/0x180 [coretemp]
[91855.871107] cpuhp_invoke_callback+0x105/0x4b0
[91855.893432] cpuhp_thread_fun+0x8e/0x150
...
Fix this by checking for NULL first.
Security readout for executives and security teams
Plain-English summary
CVE-2022-49010 is a Linux kernel core temperature driver bug that can crash the kernel in a specific error path. The issue happens when cleanup code tries to remove sysfs attributes for data that is already NULL or freed. Public sources do not show active exploitation or a CVSS score.
Executive priority
Prioritize normal kernel patch cycles for Linux systems where uptime is important. Escalate if affected hosts use CPU hotplug or have seen related kernel crashes. Current public evidence does not support emergency treatment for internet-exposed compromise.
Technical view
In hwmon coretemp, if coretemp_add_core() errors, pdata->core_data[indx] may already be NULL and freed. Passing it to sysfs_remove_group() during coretemp_cpu_offline can cause a kernel NULL pointer dereference. The upstream fix adds a NULL check before removing the sysfs group.
Likely exposure
Exposure is most relevant to Linux systems using the coretemp hwmon driver and CPU offline/hotplug paths. The source lists Linux kernel versions as affected, but distro-specific status and fixed package versions are not provided in the bundle.
Exploitation context
The provided evidence shows a crash during CPU offline handling after a duplicate sysfs filename condition. There is no KEV listing and no cited source indicating active exploitation. Practical exploitability beyond denial-of-service is not established here.
Researcher notes
The bundle lacks CVSS, CWE, distro advisories, and exploitability analysis. Treat impact as availability-focused based on the reported kernel oops. Validate affectedness against exact kernel trees or distribution backports rather than relying only on upstream version labels.
Mitigation direction
Update to a Linux kernel build containing the referenced stable fixes.
Check your Linux distribution advisory for backported fixes and package names.
Avoid unnecessary CPU offline or hotplug operations until patched, where operationally feasible.
Validation and detection
Inventory Linux kernel versions across affected server and workstation fleets.
Confirm whether vendor kernels include one of the referenced stable commits.
Review kernel logs for coretemp, sysfs duplicate filename, or NULL pointer dereference messages.
Verify coretemp hwmon usage on systems where CPU hotplug is operationally relevant.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2022-49010 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.