CVE-2021-47276

Source
https://cve.org/CVERecord?id=CVE-2021-47276
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47276.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-47276
Downstream
DEBIAN (1)
SUSE (6)
UBUNTU (1)
Related
Published
2024-05-21T15:15:15Z
Modified
2026-03-13T05:19:24Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git /

Affected ranges

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"
            }
        ]
    }
]