Menu

Star on GitHub · 3.2k

CVE-2021-47202

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: thermal: Fix NULL pointer dereferences in of_thermal_ functions of_parse_thermal_zones() parses the thermal-zones node and regi…

Published Apr 10, 2024CWE-476EPSS 0.24%

Overview

CVE-2021-47202 is a medium-severity vulnerability. It was published on April 10, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

thermal: Fix NULL pointer dereferences in of_thermal_ functions

of_parse_thermal_zones() parses the thermal-zones node and registers a

thermal_zone device for each subnode. However, if a thermal zone is

consuming a thermal sensor and that thermal sensor device hasn't probed

yet, an attempt to set trip_point_*_temp for that thermal zone device

can cause a NULL pointer dereference. Fix it.

console:/sys/class/thermal/thermal_zone87 # echo 120000 > trip_point_0_temp

...

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000020

...

Call trace:

of_thermal_set_trip_temp+0x40/0xc4

trip_point_temp_store+0xc0/0x1dc

dev_attr_store+0x38/0x88

sysfs_kf_write+0x64/0xc0

kernfs_fop_write_iter+0x108/0x1d0

vfs_write+0x2f4/0x368

ksys_write+0x7c/0xec

__arm64_sys_write+0x20/0x30

el0_svc_common.llvm.7279915941325364641+0xbc/0x1bc

do_el0_svc+0x28/0xa0

el0_svc+0x14/0x24

el0_sync_handle

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47202?

CVE-2021-47202 is a medium-severity vulnerability. It was published on April 10, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2021-47202?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47202?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47202?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47202 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2021

View all