media: anysee: fix null-ptr-deref in anysee_master_xfer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b · < 14b94154a72388b57221a2a73795c0ea61a95373| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: anysee: fix null-ptr-deref in anysee_master_xfer
In anysee_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 anysee_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()")
[hverkuil: add spaces around +]
From the CVE record · Linux
The Linux kernel’s anysee_master_xfer function can dereference a null pointer when a user-controlled message has a null buffer and zero length. A malicious message meeting those conditions can crash the kernel; the input does not specify whether authentication, network access, or other user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected anysee code; affected versions are not specified.