media: az6007: Fix null-ptr-deref in az6007_i2c_xfer()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ caa1a700ed2a06a831e6a7db5d9f213fc63caee3 · < 6ab7ea4e17d6a605d05308adf8f3408924770cba| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: az6007: Fix null-ptr-deref in az6007_i2c_xfer()
In az6007_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 az6007_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 az6007_i2c_xfer() can dereference a null pointer. A user-controlled message with a null buffer and zero length can reach the vulnerable code and cause a crash.
Engineers running Linux kernels with the az6007 media driver should check whether their kernel includes the fix; affected versions were not specified.