diff options
| author | Alex Guo <alexguo1023@gmail.com> | 2025-06-15 21:33:53 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2025-06-16 13:17:37 +0200 |
| commit | ed0234c8458b3149f15e496b48a1c9874dd24a1b (patch) | |
| tree | 5abec4e8b1ae7d535eb4ceffef034d311ac0101a /tools/perf/scripts/python/bin | |
| parent | 4d2c3d70799f5eb210003613766bbd113bbebc1a (diff) | |
| download | linux-ed0234c8458b3149f15e496b48a1c9874dd24a1b.tar.gz linux-ed0234c8458b3149f15e496b48a1c9874dd24a1b.zip | |
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()")
Signed-off-by: Alex Guo <alexguo1023@gmail.com>
Link: https://lore.kernel.org/r/20250616013353.738790-1-alexguo1023@gmail.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
