CVE-2021-47276: ftrace: Do not blindly read the ip address in ftrace_bug()
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.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel availability flaw in the ftrace error-reporting path. When ftrace hit a bad instruction-patching address, the reporting code could read that invalid address directly and panic the machine. The source does not describe data theft, privilege escalation, or remote compromise.
Executive priority
Treat this as a kernel stability remediation item, not an emergency breach indicator. Patch through normal kernel maintenance, with higher urgency for arm64 production systems where unexpected reboot or outage would materially affect service availability.
Technical view
In ftrace_bug(), an -EINVAL path could still dereference the reported instruction pointer. On arm64, a bad IP during ftrace_init() NOP patching could point outside valid kernel memory, causing a panic. The fix uses copy_from_kernel_nofault() and reports a faulting address safely.
Likely exposure
Exposure is likely limited to Linux systems running affected kernel ranges containing the ftrace code path. The bundle indicates Linux kernels before listed stable fixes across 4.4, 4.9, 4.14, 4.19, 5.4, 5.10, 5.12, and 5.13 lines may need validation.
Exploitation context
The source bundle shows KEV is false and gives no evidence of active exploitation. The described impact is a kernel panic during an ftrace initialization error path, not a documented attacker-driven exploit chain.
Researcher notes
The record is specific to an error-handling read in ftrace_bug(). The bundle lacks CVSS, CWE, exploitability analysis, and distribution-specific fixed package data, so validation should focus on kernel source ancestry and vendor backports.
Mitigation direction
Upgrade to a vendor kernel containing the referenced stable ftrace fix.
Confirm distribution backports rather than relying only on upstream version numbers.
Prioritize arm64 Linux systems where ftrace or kernel tracing is enabled.
Schedule reboot and rollback planning for kernel updates.
Monitor Linux distribution advisories for CVE-2021-47276 handling.
Validation and detection
Inventory Linux kernel versions across servers, appliances, and images.
Check vendor changelogs for the ftrace_bug() nofault-read fix.
Identify arm64 systems and systems using ftrace or tracing features.
Confirm patched kernels are booted, not just installed.
Review crash logs for ftrace_init or ftrace_bug kernel panics.
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-2021-47276 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.