media: tuners: qt1010: replace BUG_ON with a regular error
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4682b58e5af01ee856a706083eac71238fb69cd0 · < 257092cb544c7843376b3e161f789e666ef06c98| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: tuners: qt1010: replace BUG_ON with a regular error
BUG_ON is unnecessary here, and in addition it confuses smatch. Replacing this with an error return help resolve this smatch warning:
drivers/media/tuners/qt1010.c:350 qt1010_init() error: buffer overflow 'i2c_data' 34 <= 34
From the CVE record · Linux
The Linux kernel’s qt1010 tuner initialization code triggered a static-analysis warning about a possible buffer overflow. The fix replaces a BUG_ON check with a regular error return; the input does not establish an attack path or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the qt1010 tuner code should check their versions; affected versions are not specified.