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.
History

Fri, 20 Dec 2024 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2024-05-21T14:20:04.023Z

Updated: 2024-12-19T07:38:45.013Z

Reserved: 2024-05-21T13:27:52.128Z

Link: CVE-2021-47276

cve-icon Vulnrichment

Updated: 2024-08-04T05:32:07.996Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-05-21T15:15:15.983

Modified: 2024-11-21T06:35:46.860

Link: CVE-2021-47276

cve-icon Redhat

Severity : Low

Publid Date: 2024-05-21T00:00:00Z

Links: CVE-2021-47276 - Bugzilla