drivers: media: dvb-frontends/rtl2832: fix an out-of-bounds write error
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4b01e01a81b6629878344430531ced347cc2ed5b · < 527ab3eb3b0b4a6ee00e183c1de6a730239e2835| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drivers: media: dvb-frontends/rtl2832: fix an out-of-bounds write error
Ensure index in rtl2832_pid_filter does not exceed 31 to prevent out-of-bounds access.
dev->filters is a 32-bit value, so set_bit and clear_bit functions should only operate on indices from 0 to 31. If index is 32, it will attempt to access a non-existent 33rd bit, leading to out-of-bounds access. Change the boundary check from index > 32 to index >= 32 to resolve this issue.
[hverkuil: added fixes tag, rtl2830_pid_filter -> rtl2832_pid_filter in logmsg]
From the CVE record · Linux
The Linux kernel’s rtl2832 PID filter permits index 32 even though valid indices are 0–31, causing an out-of-bounds write. Whether an attacker can trigger this, and any required access or user interaction, are not specified in the input.
Engineers running Linux kernels with the rtl2832 DVB frontend should check their versions; affected versions are not specified.