Commit a3d8374
CKI Backport Bot
cifs: Fix oops due to uninitialised variable
JIRA: https://issues.redhat.com/browse/RHEL-120561
CVE: CVE-2025-38737
commit 453a6d2
Author: David Howells <dhowells@redhat.com>
Date: Tue Aug 19 16:27:36 2025 +0100
cifs: Fix oops due to uninitialised variable
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>
Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>1 parent 14c3cf9 commit a3d8374
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4487 | 4487 | | |
4488 | 4488 | | |
4489 | 4489 | | |
4490 | | - | |
| 4490 | + | |
4491 | 4491 | | |
4492 | 4492 | | |
4493 | 4493 | | |
| |||
0 commit comments