mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b5e29aa880be84c271be8d0726cec4018bfbfd74 · < 311242c7703df0da14c206260b7e855f69cb0264| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()
It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. And use devm_platform_get_and_ioremap_resource() to simplify code.
From the CVE record · Linux
The Linux kernel's davinci_voicecodec driver can dereference a null pointer in davinci_vc_probe() if platform_get_resource() returns NULL. This can cause a failure; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels that include the davinci_voicecodec driver should check their versions; affected versions are not specified.