In the Linux kernel, the following vulnerability has been resolved:
drm/meson: fix shutdown crash when component not probed
When main component is not probed, by example when the dw-hdmi module is not loaded yet or in probe defer, the following crash appears on shutdown:
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000038 ... pc : mesondrvshutdown+0x24/0x50 lr : platformdrvshutdown+0x20/0x30 ... Call trace: mesondrvshutdown+0x24/0x50 platformdrvshutdown+0x20/0x30 deviceshutdown+0x158/0x360 kernelrestartprepare+0x38/0x48 kernelrestart+0x18/0x68 __dosysreboot+0x224/0x250 __arm64sysreboot+0x24/0x30 ...
Simply check if the priv struct has been allocated before using it.
[
{
"events": [
{
"introduced": "4.14.226"
},
{
"fixed": "4.14.235"
}
]
},
{
"events": [
{
"introduced": "4.19.181"
},
{
"fixed": "4.19.193"
}
]
},
{
"events": [
{
"introduced": "5.4.106"
},
{
"fixed": "5.4.124"
}
]
},
{
"events": [
{
"introduced": "5.10.24"
},
{
"fixed": "5.10.42"
}
]
},
{
"events": [
{
"introduced": "5.12"
},
{
"fixed": "5.12.9"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc1"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc3"
}
]
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47165.json"