media: av7110: prevent underflow in write_ts_to_decoder()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf · < 423350af9e27f005611bd881b1df2cab66de943d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: av7110: prevent underflow in write_ts_to_decoder()
The buf[4] value comes from the user via ts_play(). It is a value in the u8 range. The final length we pass to av7110_ipack_instant_repack() is "len - (buf[4] + 1) - 4" so add a check to ensure that the length is not negative. It's not clear that passing a negative len value does anything bad necessarily, but it's not best practice.
With the new bounds checking the "if (!len)" condition is no longer possible or required so remove that.
From the CVE record · Linux
The av7110 media driver did not check whether a user-supplied value from ts_play() would make a length calculation negative. A user who can supply that value could cause a negative length to be passed to av7110_ipack_instant_repack(); the input does not establish any further impact.
Engineers running Linux kernels with the av7110 media driver should check their kernel; affected versions are not specified.