Commit 437d460
committed
wifi: iwlwifi: limit printed string from FW file
jira LE-3622
cve CVE-2025-21905
Rebuild_History Non-Buildable kernel-6.12.0-55.22.1.el10_0
commit-author Johannes Berg <johannes.berg@intel.com>
commit e0dc2c1
There's no guarantee here that the file is always with a
NUL-termination, so reading the string may read beyond the
end of the TLV. If that's the last TLV in the file, it can
perhaps even read beyond the end of the file buffer.
Fix that by limiting the print format to the size of the
buffer we have.
Fixes: aee1b63 ("iwlwifi: support fseq tlv and print fseq version")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250209143303.cb5f9d0c2f5d.Idec695d53c6c2234aade306f7647b576c7e3d928@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
(cherry picked from commit e0dc2c1)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent fef2884 commit 437d460
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1197 | 1197 | | |
1198 | 1198 | | |
1199 | 1199 | | |
1200 | | - | |
| 1200 | + | |
1201 | 1201 | | |
1202 | 1202 | | |
1203 | 1203 | | |
| |||
0 commit comments