{"id":"CVE-2021-47276","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nftrace: Do not blindly read the ip address in ftrace_bug()\n\nIt was reported that a bug on arm64 caused a bad ip address to be used for\nupdating into a nop in ftrace_init(), but the error path (rightfully)\nreturned -EINVAL and not -EFAULT, as the bug caused more than one error to\noccur. But because -EINVAL was returned, the ftrace_bug() tried to report\nwhat was at the location of the ip address, and read it directly. This\ncaused the machine to panic, as the ip was not pointing to a valid memory\naddress.\n\nInstead, read the ip address with copy_from_kernel_nofault() to safely\naccess the memory, and if it faults, report that the address faulted,\notherwise report what was in that location.","modified":"2026-03-13T05:19:24.989593Z","published":"2024-05-21T15:15:15.983Z","related":["SUSE-SU-2024:1979-1","SUSE-SU-2024:1983-1","SUSE-SU-2024:2010-1","SUSE-SU-2024:2183-1","SUSE-SU-2024:2184-1","SUSE-SU-2024:2185-1"],"references":[{"type":"FIX","url":"https://git.kernel.org/stable/c/6c14133d2d3f768e0a35128faac8aa6ed4815051"},{"type":"FIX","url":"https://git.kernel.org/stable/c/7e4e824b109f1d41ccf223fbb0565d877d6223a2"},{"type":"FIX","url":"https://git.kernel.org/stable/c/862dcc14f2803c556bdd73b43c27b023fafce2fb"},{"type":"FIX","url":"https://git.kernel.org/stable/c/97524384762c1fb9b3ded931498dd2047bd0de81"},{"type":"FIX","url":"https://git.kernel.org/stable/c/acf671ba79c1feccc3ec7cfdcffead4efcec49e7"},{"type":"FIX","url":"https://git.kernel.org/stable/c/0bc62e398bbd9e600959e610def5109957437b28"},{"type":"FIX","url":"https://git.kernel.org/stable/c/3e4ddeb68751fb4fb657199aed9cfd5d02796875"},{"type":"FIX","url":"https://git.kernel.org/stable/c/4aedc2bc2b32c93555f47c95610efb89cc1ec09b"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47276.json","unresolved_ranges":[{"events":[{"introduced":"2.6.28"},{"fixed":"4.4.273"}]},{"events":[{"introduced":"4.5"},{"fixed":"4.9.273"}]},{"events":[{"introduced":"4.10"},{"fixed":"4.14.237"}]},{"events":[{"introduced":"4.15"},{"fixed":"4.19.195"}]},{"events":[{"introduced":"4.20"},{"fixed":"5.4.126"}]},{"events":[{"introduced":"5.5"},{"fixed":"5.10.44"}]},{"events":[{"introduced":"5.11"},{"fixed":"5.12.11"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc1"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc2"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc3"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc4"}]},{"events":[{"introduced":"0"},{"last_affected":"5.13-rc5"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}