media: dvb-net: fix OOB access in ULE extension header tables
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 8bde543d2a5f935ba2a6a6325a2e02f8a9256fbe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: dvb-net: fix OOB access in ULE extension header tables
The ule_mandatory_ext_handlers[] and ule_optional_ext_handlers[] tables in handle_one_ule_extension() are declared with 255 elements (valid indices 0-254), but the index htype is derived from network-controlled data as (ule_sndu_type & 0x00FF), giving a range of 0-255. When htype equals 255, an out-of-bounds read occurs on the function pointer table, and the OOB value may be called as a function pointer.
Add a bounds check on htype against the array size before either table is accessed. Out-of-range values now cause the SNDU to be discarded.
From the CVE record · Linux
The Linux kernel's dvb-net ULE extension handler can read past a function-pointer table when network-controlled data sets the header type to 255. The out-of-bounds value may then be called as a function pointer; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with dvb-net should check their versions against the vendor advisory; affected versions are not specified.