Description (CNA)
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 +]
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b before 73c0b224ceeba12dee2a7a8cbc147648da0b2e63; affected a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b before e04affec2506ff5c12a18d78d7e694b3556a8982; affected a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b before 8dc5b370254abc10f0cb4141d90cecf7ce465472; affected a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b before 4a9763d2bc4a6d6fab42555b9c0b2eefa32585ac; affected a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b before 3dd5846a873938ec7b6d404ec27662942cd8f2ef; affected a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b before 14b94154a72388b57221a2a73795c0ea61a95373; affected a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b before 5975dbbb7ad0767eaabd15d2c37a739ac76acb00; affected a51e34dd6080d8d5c9e95a4e0292cd4cb889a61b before c30411266fd67ea3c02a05c157231654d5a3bdc9 |
| Linux / Linux | affected 2.6.27; unaffected 0 before 2.6.27; unaffected 4.14.326 through 4.14.*; unaffected 4.19.295 through 4.19.*; unaffected 5.4.257 through 5.4.*; unaffected 5.10.197 through 5.10.*; unaffected 5.15.133 through 5.15.*; unaffected 6.1.55 through 6.1.*; unaffected 6.5.5 through 6.5.*; unaffected 6.6 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/73c0b224ceeba12dee2a7a8cbc147648da0b2e63
- https://git.kernel.org/stable/c/e04affec2506ff5c12a18d78d7e694b3556a8982
- https://git.kernel.org/stable/c/8dc5b370254abc10f0cb4141d90cecf7ce465472
- https://git.kernel.org/stable/c/4a9763d2bc4a6d6fab42555b9c0b2eefa32585ac
- https://git.kernel.org/stable/c/3dd5846a873938ec7b6d404ec27662942cd8f2ef
- https://git.kernel.org/stable/c/14b94154a72388b57221a2a73795c0ea61a95373
- https://git.kernel.org/stable/c/5975dbbb7ad0767eaabd15d2c37a739ac76acb00
- https://git.kernel.org/stable/c/c30411266fd67ea3c02a05c157231654d5a3bdc9