media: dvb-usb-v2: af9035: Fix null-ptr-deref in af9035_i2c_master_xfer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7f882c2e353ca58695e9b4fcc9e97a9d4cbcf273 · < 0143f282b15f7cedc0392ea10050fb6000fd16e6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: dvb-usb-v2: af9035: Fix null-ptr-deref in af9035_i2c_master_xfer
In af9035_i2c_master_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 af9035_i2c_master_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 af9035 DVB-USB driver can dereference a null pointer in af9035_i2c_master_xfer. A user-controlled message with a null buffer and zero length can reach the vulnerable access and crash the kernel. The input does not specify the required access or authentication.
Engineers running Linux kernels with the af9035 DVB-USB driver should check their versions against the vendor advisory; affected versions are not specified.