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.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47276.json"
[
{
"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"
}
]
}
]