CVE-2021-47526Published May 24, 2024 · May 24Updated Jun 17
serial: liteuart: Fix NULL pointer dereference in ->remove()
Linux
Medium5.5Fix available
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
serial: liteuart: Fix NULL pointer dereference in ->remove()
drvdata has to be set in _probe() - otherwise platform_get_drvdata() causes null pointer dereference BUG in _remove().
From the CVE record · Linux
The Linux kernel's liteuart serial driver can dereference a NULL pointer when the device is removed because its probe function does not set driver data. This can cause a kernel BUG; the input does not specify whether an attacker can trigger removal or what access it would require.
Engineers running Linux kernels with the liteuart serial driver should check their deployments; affected versions are not specified.