{"id":"CVE-2021-47276","aliases":["CVE-2021-47276"],"related":[],"kind":"vulnerability","state":"published","title":"ftrace: Do not blindly read the ip address in ftrace_bug()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ftrace: no lea ciegamente la dirección IP en ftrace_bug(). Se informó que un error en arm64 provocó que se usara una dirección IP incorrecta para actualizar a un nop en ftrace_init() , pero la ruta de error (con razón) devolvió -EINVAL y no -EFAULT, ya que el error provocó que ocurriera más de un error. Pero debido a que se devolvió -EINVAL, ftrace_bug() intentó informar qué había en la ubicación de la dirección IP y leerlo directamente. Esto provocó que la máquina entrara en pánico, ya que la IP no apuntaba a una dirección de memoria válida. En su lugar, lea la dirección IP con copy_from_kernel_nofault() para acceder de forma segura a la memoria y, si falla, informe que la dirección falló; de lo contrario, informe qué había en esa ubicación.","source":"nvd"}],"published":"2024-05-21T14:20:04.023Z","modified":"2026-06-17T04:17:05.013Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-706"],"affected":[{"ranges":[{"type":"git","introduced":"05736a427f7e16be948ccbf39782bd3a6ae16b14","fixed":"0bc62e398bbd9e600959e610def5109957437b28","status":"affected"},{"type":"git","introduced":"05736a427f7e16be948ccbf39782bd3a6ae16b14","fixed":"4aedc2bc2b32c93555f47c95610efb89cc1ec09b","status":"affected"},{"type":"git","introduced":"05736a427f7e16be948ccbf39782bd3a6ae16b14","fixed":"acf671ba79c1feccc3ec7cfdcffead4efcec49e7","status":"affected"},{"type":"git","introduced":"05736a427f7e16be948ccbf39782bd3a6ae16b14","fixed":"862dcc14f2803c556bdd73b43c27b023fafce2fb","status":"affected"},{"type":"git","introduced":"05736a427f7e16be948ccbf39782bd3a6ae16b14","fixed":"7e4e824b109f1d41ccf223fbb0565d877d6223a2","status":"affected"},{"type":"git","introduced":"05736a427f7e16be948ccbf39782bd3a6ae16b14","fixed":"97524384762c1fb9b3ded931498dd2047bd0de81","status":"affected"},{"type":"git","introduced":"05736a427f7e16be948ccbf39782bd3a6ae16b14","fixed":"3e4ddeb68751fb4fb657199aed9cfd5d02796875","status":"affected"},{"type":"git","introduced":"05736a427f7e16be948ccbf39782bd3a6ae16b14","fixed":"6c14133d2d3f768e0a35128faac8aa6ed4815051","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.28","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.28","status":"unaffected"},{"type":"semver","introduced":"4.4.273","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.273","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.237","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.195","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.126","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.44","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.11","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.28","fixed":"4.4.273"},{"status":"affected","introduced":"4.5","fixed":"4.9.273"},{"status":"affected","introduced":"4.10","fixed":"4.14.237"},{"status":"affected","introduced":"4.15","fixed":"4.19.195"},{"status":"affected","introduced":"4.20","fixed":"5.4.126"},{"status":"affected","introduced":"5.5","fixed":"5.10.44"},{"status":"affected","introduced":"5.11","fixed":"5.12.11"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0bc62e398bbd9e600959e610def5109957437b28","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4aedc2bc2b32c93555f47c95610efb89cc1ec09b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/acf671ba79c1feccc3ec7cfdcffead4efcec49e7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/862dcc14f2803c556bdd73b43c27b023fafce2fb","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e4e824b109f1d41ccf223fbb0565d877d6223a2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/97524384762c1fb9b3ded931498dd2047bd0de81","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e4ddeb68751fb4fb657199aed9cfd5d02796875","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6c14133d2d3f768e0a35128faac8aa6ed4815051","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-23T21:21:37.653Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47276","url":"https://www.cve.org/CVERecord?id=CVE-2021-47276","licence":"CVE Terms of Use","modified":"2026-05-11T13:51:22.756Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47276","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47276","licence":"Public domain","modified":"2026-06-17T04:17:05.013Z"}],"updatedAt":"2026-11-25T22:58:08.772Z","epss":{"score":0.00236,"percentile":0.1566,"date":"2026-12-01T12:00:22.000Z"}}