Bug 5333 - BUG: media: dvb-usb-v2: rtl28xxu: null-ptr-deref in rtl28xxu_i2c_xfer
Summary: BUG: media: dvb-usb-v2: rtl28xxu: null-ptr-deref in rtl28xxu_i2c_xfer
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: 5.10.y-10
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: hanchunchao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-29 15:37 UTC by hanchunchao
Modified: 2023-08-17 18:29 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hanchunchao inspur_group 2023-05-29 15:37:21 UTC
Description of problem:

In rtl28xxu_i2c_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 rtl28xxu_i2c_xfer. If accessing
msg[i].buf[0] without sanity check, null ptr deref would happen.
Comment 1 小龙 admin 2023-05-29 15:51:50 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/1683