Commit 1085215
committed
cifs: Fix oops due to uninitialised variable
jira KERNEL-318
cve CVE-2025-38737
Rebuild_History Non-Buildable kernel-6.12.0-124.20.1.el10_1
commit-author David Howells <dhowells@redhat.com>
commit 453a6d2
Fix smb3_init_transform_rq() to initialise buffer to NULL before calling
netfs_alloc_folioq_buffer() as netfs assumes it can append to the buffer it
is given. Setting it to NULL means it should start a fresh buffer, but the
value is currently undefined.
Fixes: a2906d3 ("cifs: Switch crypto buffer to use a folio_queue rather than an xarray")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
cc: Paulo Alcantara <pc@manguebit.org>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
(cherry picked from commit 453a6d2)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 3464b11 commit 1085215
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4509 | 4509 | | |
4510 | 4510 | | |
4511 | 4511 | | |
4512 | | - | |
| 4512 | + | |
4513 | 4513 | | |
4514 | 4514 | | |
4515 | 4515 | | |
| |||
0 commit comments