Linux: accel/ivpu: Limit firmware log name prints to field size
What fixes it
- 3d9365093f16b069908e610d17da172bf006bbdeLinuxCVE List
- 6dbba89df4e842d226f5cd3dbc5e94533cfceea2LinuxCVE List
- 5d06257359c9006a208fece9eb7f0a0e83e0cc92LinuxCVE List
- 3d7130807009e9be6132c1394a2c7708a3ba39a7LinuxCVE List
- 95bf070f3225dc7175725438c916ad321d42fe45LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
accel/ivpu: Limit firmware log name prints to field size
The name in struct vpu_tracing_buffer_header is a fixed-size array populated by the NPU firmware. It is expected to be NUL-terminated, but nothing on the host side enforces this, so printing it with an unbounded string conversion would read past the field if the terminator is ever missing and expose adjacent bytes of the shared tracing BO through dmesg and the debugfs FW log output.
Print at most as many characters as the name field holds, so the output never runs past it even if the string is not NUL-terminated.
Text from CVE List
Affected versions 12
- Linuxaffected: d4e4257afa6ed5205eda993180401fc2c20e4b60 before 3d9365093f16b069908e610d17da172bf006bbdeCVE List
- Linuxaffected: d4e4257afa6ed5205eda993180401fc2c20e4b60 before 6dbba89df4e842d226f5cd3dbc5e94533cfceea2CVE List
- Linuxaffected: d4e4257afa6ed5205eda993180401fc2c20e4b60 before 5d06257359c9006a208fece9eb7f0a0e83e0cc92CVE List
- Linuxaffected: d4e4257afa6ed5205eda993180401fc2c20e4b60 before 3d7130807009e9be6132c1394a2c7708a3ba39a7CVE List
- Linuxaffected: d4e4257afa6ed5205eda993180401fc2c20e4b60 before 95bf070f3225dc7175725438c916ad321d42fe45CVE List
- Linuxaffected: 6.6CVE List
- Linuxunaffected: all versions before 6.6CVE List
- Linuxunaffected: 6.6.160 through 6.6.*CVE List
- Linuxunaffected: 6.12.111 through 6.12.*CVE List
- Linuxunaffected: 6.18.53 through 6.18.*CVE List
- Linuxunaffected: 7.2.7 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/3d9365093f16b069908e610d17da172bf006bbdeReferencevia CVE List
- git.kernel.org/stable/c/6dbba89df4e842d226f5cd3dbc5e94533cfceea2Referencevia CVE List
- git.kernel.org/stable/c/5d06257359c9006a208fece9eb7f0a0e83e0cc92Referencevia CVE List
- git.kernel.org/stable/c/3d7130807009e9be6132c1394a2c7708a3ba39a7Referencevia CVE List
- git.kernel.org/stable/c/95bf070f3225dc7175725438c916ad321d42fe45Referencevia CVE List