media: dvb-frontends: w7090p: fix null-ptr-deref in w7090p_tuner_write_serpar and w7090p_tuner_read_serpar
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 713d54a8bd812229410a1902cd9b332a2a27af9f · < f98132a59ccc59a8b97987363bc99c8968934756| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: dvb-frontends: w7090p: fix null-ptr-deref in w7090p_tuner_write_serpar and w7090p_tuner_read_serpar
In w7090p_tuner_write_serpar, msg is controlled by user. When msg[0].buf is null and msg[0].len is zero, former checks on msg[0].buf would be passed. If accessing msg[0].buf[2] without sanity check, null pointer deref would happen. We add check on msg[0].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 w7090p DVB frontend can dereference a null pointer when a user-controlled message has a null buffer and zero length. This can crash the kernel; the input does not specify whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with the w7090p DVB frontend should check their versions; affected versions are not specified.