In the Linux kernel, the following vulnerability has been resolved:
media: dvb-frontends: avoid stack overflow warnings with clang
A previous patch worked around a KASAN issue in stv0367, now a similar problem showed up with clang:
drivers/media/dvb-frontends/stv0367.c:1222:12: error: stack frame size (3624) exceeds limit (2048) in 'stv0367ter_set_frontend' [-Werror,-Wframe-larger-than] 1214 | static int stv0367ter_set_frontend(struct dvb_frontend *fe)
Rework the stv0367_writereg() function to be simpler and mark both register access functions as noinline_for_stack so the temporary i2c_msg structures do not get duplicated on the stack when KASAN_STACK is enabled.
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 4.4.168 | 4.5 |
| linux / linux_kernel | 4.9.82 | 4.10 |
| linux / linux_kernel | 4.14.20 | 4.15 |
| linux / linux_kernel | 4.15.4 | 4.19.311 |
| linux / linux_kernel | 4.20 | 5.4.273 |
| linux / linux_kernel | 5.5 | 5.10.214 |
| linux / linux_kernel | 5.11 | 5.15.153 |
| linux / linux_kernel | 5.16 | 6.1.83 |
| linux / linux_kernel | 6.2 | 6.6.23 |
| linux / linux_kernel | 6.7 | 6.7.11 |
| linux / linux_kernel | 6.8 | 6.8.2 |
| debian / debian_linux | 10.0 | 10.0.x |