media: renesas: vsp1: Fix NULL pointer deref on module unload
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.327.0.97.1In the Linux kernel, the following vulnerability has been resolved:
media: renesas: vsp1: Fix NULL pointer deref on module unload
When unloading the module on gen 4, we hit a NULL pointer dereference. This is caused by the cleanup code calling vsp1_drm_cleanup() where it should be calling vsp1_vspx_cleanup().
Fix this by checking the IP version and calling the drm or vspx function accordingly, the same way as the init code does.
From the CVE record · Linux
The Linux kernel’s Renesas VSP1 driver can dereference a NULL pointer when the module is unloaded on gen 4 hardware. The issue occurs because module cleanup calls the wrong cleanup function; the input does not specify authentication requirements or whether user interaction is needed.
Engineers running the Linux kernel with the Renesas VSP1 module on gen 4 hardware should check their installations; affected versions are not specified.