CVE-2021-47276

ftrace: Do not blindly read the ip address in ftrace_bug()

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 02:20 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ftrace: Do not blindly read the ip address in ftrace_bug() It was reported that a bug on arm64 caused a bad ip address to be used for updating into a nop in ftrace_init(), but the error path (rightfully) returned -EINVAL and not -EFAULT, as the bug caused more than one error to occur. But because -EINVAL was returned, the ftrace_bug() tried to report what was at the location of the ip address, and read it directly. This caused the machine to panic, as the ip was not pointing to a valid memory address. Instead, read the ip address with copy_from_kernel_nofault() to safely access the memory, and if it faults, report that the address faulted, otherwise report what was in that location.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.28 ≤ v < 4.14.2372.6.28 ≤ v < 4.19.1952.6.28 ≤ v < 4.4.2732.6.28 ≤ v < 4.9.2732.6.28 ≤ v < 5.10.442.6.28 ≤ v < 5.12.112.6.28 ≤ v < 5.132.6.28 ≤ v < 5.4.1264.10 ≤ v < 4.14.2374.15 ≤ v < 4.19.1954.20 ≤ v < 5.4.1264.5 ≤ v < 4.9.2735.11 ≤ v < 5.12.115.5 ≤ v < 5.10.445.13 rc15.13 rc25.13 rc35.13 rc45.13 rc55736a427f7e16be948ccbf39782bd3a6ae16b14
Vendor states this is fixed in 0bc62e398bbd9e600959e610def5109957437b28 (fixed)
Vendor states this is fixed in 3e4ddeb68751fb4fb657199aed9cfd5d02796875 (fixed)
Vendor states this is fixed in 4aedc2bc2b32c93555f47c95610efb89cc1ec09b (fixed)
Vendor states this is fixed in 6c14133d2d3f768e0a35128faac8aa6ed4815051 (fixed)
Vendor states this is fixed in 7e4e824b109f1d41ccf223fbb0565d877d6223a2 (fixed)
Vendor states this is fixed in 862dcc14f2803c556bdd73b43c27b023fafce2fb (fixed)
Vendor states this is fixed in 97524384762c1fb9b3ded931498dd2047bd0de81 (fixed)
Vendor states this is fixed in acf671ba79c1feccc3ec7cfdcffead4efcec49e7 (fixed)
Vendor states this is fixed in 2.6.28 (unaffected)
Vendor states this is fixed in 4.14.237 (unaffected)
Vendor states this is fixed in 4.19.195 (unaffected)
Vendor states this is fixed in 4.4.273 (unaffected)
Vendor states this is fixed in 4.9.273 (unaffected)
Vendor states this is fixed in 5.10.44 (unaffected)
Vendor states this is fixed in 5.12.11 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4.126 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0bc62e398bbd9e600959e610def5109957437b28
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3e4ddeb68751fb4fb657199aed9cfd5d02796875
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4aedc2bc2b32c93555f47c95610efb89cc1ec09b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6c14133d2d3f768e0a35128faac8aa6ed4815051
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7e4e824b109f1d41ccf223fbb0565d877d6223a2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/862dcc14f2803c556bdd73b43c27b023fafce2fb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/97524384762c1fb9b3ded931498dd2047bd0de81
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/acf671ba79c1feccc3ec7cfdcffead4efcec49e7

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-706

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card