media: dvb-frontends: avoid stack overflow warnings with clang
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e · < 8fad9c5bb00d3a9508d18bbfe832e33a47377730| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s stv0367 DVB frontend can produce an oversized stack frame when built with clang and KASAN_STACK enabled. The input does not describe an attacker action or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels that include the stv0367 DVB frontend should check their builds; affected versions are not specified.