media: af9005: Fix null-ptr-deref in af9005_i2c_xfer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ af4e067e1dcf926d9523dff11e46c45fd9fa9da2 · < abb6fd93e05e80668d2317fe1110bc99b05034c3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: af9005: Fix null-ptr-deref in af9005_i2c_xfer
In af9005_i2c_xfer, msg is controlled by user. When msg[i].buf is null and msg[i].len is zero, former checks on msg[i].buf would be passed. Malicious data finally reach af9005_i2c_xfer. If accessing msg[i].buf[0] without sanity check, null ptr deref would happen. We add check on msg[i].len to prevent crash.
Similar commit: commit 0ed554fd769a ("media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()")
From the CVE record · Linux
The Linux kernel’s af9005_i2c_xfer can dereference a null pointer when a user-controlled message has a null buffer and zero length. A malicious message reaching this function can crash the kernel. The input does not specify access or authentication requirements.
Engineers running Linux kernels that include the af9005 media driver should check their exposure; affected versions are not specified.