CVE-2021-47276
ftrace: Do not blindly read the ip address in ftrace_bug()
Mitigation
- Upgrade Linux to 6c14133d2d3f768e0a35128faac8aa6ed4815051 or later.
Who should check
- Anyone running Linux >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 0bc62e398bbd9e600959e610def5109957437b28; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 4aedc2bc2b32c93555f47c95610efb89cc1ec09b; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < acf671ba79c1feccc3ec7cfdcffead4efcec49e7; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 862dcc14f2803c556bdd73b43c27b023fafce2fb; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 7e4e824b109f1d41ccf223fbb0565d877d6223a2; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 97524384762c1fb9b3ded931498dd2047bd0de81; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 3e4ddeb68751fb4fb657199aed9cfd5d02796875; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 6c14133d2d3f768e0a35128faac8aa6ed4815051
- Anyone running Linux 2.6.28
Vulnerability facts
- Affected
- Linux >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 0bc62e398bbd9e600959e610def5109957437b28; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 4aedc2bc2b32c93555f47c95610efb89cc1ec09b; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < acf671ba79c1feccc3ec7cfdcffead4efcec49e7; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 862dcc14f2803c556bdd73b43c27b023fafce2fb; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 7e4e824b109f1d41ccf223fbb0565d877d6223a2; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 97524384762c1fb9b3ded931498dd2047bd0de81; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 3e4ddeb68751fb4fb657199aed9cfd5d02796875; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 6c14133d2d3f768e0a35128faac8aa6ed4815051; Linux 2.6.28
- Fixed in
- Linux 0bc62e398bbd9e600959e610def5109957437b28, Linux 4aedc2bc2b32c93555f47c95610efb89cc1ec09b, Linux 862dcc14f2803c556bdd73b43c27b023fafce2fb, Linux 7e4e824b109f1d41ccf223fbb0565d877d6223a2, Linux 97524384762c1fb9b3ded931498dd2047bd0de81, Linux 3e4ddeb68751fb4fb657199aed9cfd5d02796875, Linux 6c14133d2d3f768e0a35128faac8aa6ed4815051
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-706
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 0bc62e398bbd9e600959e610def5109957437b28; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 4aedc2bc2b32c93555f47c95610efb89cc1ec09b; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < acf671ba79c1feccc3ec7cfdcffead4efcec49e7; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 862dcc14f2803c556bdd73b43c27b023fafce2fb; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 7e4e824b109f1d41ccf223fbb0565d877d6223a2; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 97524384762c1fb9b3ded931498dd2047bd0de81; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 3e4ddeb68751fb4fb657199aed9cfd5d02796875; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 6c14133d2d3f768e0a35128faac8aa6ed4815051 | — | cvelist |
| Linux | 2.6.28 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47276. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47276.md Affected: Linux >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 0bc62e398bbd9e600959e610def5109957437b28; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 4aedc2bc2b32c93555f47c95610efb89cc1ec09b; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < acf671ba79c1feccc3ec7cfdcffead4efcec49e7; >= 05736a427f7e16be948ccbf… Fixed in: Linux 0bc62e398bbd9e600959e610def5109957437b28, Linux 4aedc2bc2b32c93555f47c95610efb89cc1ec09b, Linux 862dcc14f2803c556bdd73b43c27b023fafce2fb, Linux 7e4e824b109f1d41ccf223fbb0565d877d6223a2, Linux 97524384762c1fb9b3ded931498dd2047bd0de81, Linux 3e4ddeb68751fb4fb657199aed9cfd5d02796875, Linux 6c141… 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.
References
Patches
- https://git.kernel.org/stable/c/0bc62e398bbd9e600959e610def5109957437b28
- https://git.kernel.org/stable/c/4aedc2bc2b32c93555f47c95610efb89cc1ec09b
- https://git.kernel.org/stable/c/acf671ba79c1feccc3ec7cfdcffead4efcec49e7
- https://git.kernel.org/stable/c/862dcc14f2803c556bdd73b43c27b023fafce2fb
- https://git.kernel.org/stable/c/7e4e824b109f1d41ccf223fbb0565d877d6223a2
- https://git.kernel.org/stable/c/97524384762c1fb9b3ded931498dd2047bd0de81
- https://git.kernel.org/stable/c/3e4ddeb68751fb4fb657199aed9cfd5d02796875
- https://git.kernel.org/stable/c/6c14133d2d3f768e0a35128faac8aa6ed4815051
FAQ
Is CVE-2021-47276 being exploited?
There is no confirmed exploitation: CVE-2021-47276 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47276?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47276?
Linux >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 0bc62e398bbd9e600959e610def5109957437b28; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 4aedc2bc2b32c93555f47c95610efb89cc1ec09b; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < acf671ba79c1feccc3ec7cfdcffead4efcec49e7; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 862dcc14f2803c556bdd73b43c27b023fafce2fb; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 7e4e824b109f1d41ccf223fbb0565d877d6223a2; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 97524384762c1fb9b3ded931498dd2047bd0de81; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 3e4ddeb68751fb4fb657199aed9cfd5d02796875; >= 05736a427f7e16be948ccbf39782bd3a6ae16b14, < 6c14133d2d3f768e0a35128faac8aa6ed4815051; Linux 2.6.28.
Is there a fix for CVE-2021-47276?
Yes. Fixed in Linux 0bc62e398bbd9e600959e610def5109957437b28, Linux 4aedc2bc2b32c93555f47c95610efb89cc1ec09b, Linux 862dcc14f2803c556bdd73b43c27b023fafce2fb, Linux 7e4e824b109f1d41ccf223fbb0565d877d6223a2, Linux 97524384762c1fb9b3ded931498dd2047bd0de81, Linux 3e4ddeb68751fb4fb657199aed9cfd5d02796875, Linux 6c14133d2d3f768e0a35128faac8aa6ed4815051. Upgrade Linux to 6c14133d2d3f768e0a35128faac8aa6ed4815051 or later.
How do I check if I'm affected by CVE-2021-47276?
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.