In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dpu: invalid parameter check in dpu_setup_dspp_pcc
The function performs a check on the “ctx” input parameter, however, it
is used before the check.
Initialize the “base” variable after the sanity check to avoid a
possible NULL pointer dereference.
Addresses-Coverity-ID: 1493866 (“Null pointer dereference”)
[
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c"
],
"versions": [
{
"version": "4259ff7ae509",
"lessThan": "93a6e920d8cc",
"status": "affected",
"versionType": "git"
},
{
"version": "4259ff7ae509",
"lessThan": "8f069f6dde51",
"status": "affected",
"versionType": "git"
},
{
"version": "4259ff7ae509",
"lessThan": "1ebc18836d5d",
"status": "affected",
"versionType": "git"
},
{
"version": "4259ff7ae509",
"lessThan": "170b22234d54",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c"
],
"versions": [
{
"version": "5.8",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.8",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.10.96",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.15.19",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.16.5",
"lessThanOrEqual": "5.16.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.17",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
]