CVE-2023-52434
Severity CVSS v4.0:
Pending analysis
Type:
CWE-119
Buffer Errors
Publication date:
20/02/2024
Last modified:
17/01/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
smb: client: fix potential OOBs in smb2_parse_contexts()<br />
<br />
Validate offsets and lengths before dereferencing create contexts in<br />
smb2_parse_contexts().<br />
<br />
This fixes following oops when accessing invalid create contexts from<br />
server:<br />
<br />
BUG: unable to handle page fault for address: ffff8881178d8cc3<br />
#PF: supervisor read access in kernel mode<br />
#PF: error_code(0x0000) - not-present page<br />
PGD 4a01067 P4D 4a01067 PUD 0<br />
Oops: 0000 [#1] PREEMPT SMP NOPTI<br />
CPU: 3 PID: 1736 Comm: mount.cifs Not tainted 6.7.0-rc4 #1<br />
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS<br />
rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014<br />
RIP: 0010:smb2_parse_contexts+0xa0/0x3a0 [cifs]<br />
Code: f8 10 75 13 48 b8 93 ad 25 50 9c b4 11 e7 49 39 06 0f 84 d2 00<br />
00 00 8b 45 00 85 c0 74 61 41 29 c5 48 01 c5 41 83 fd 0f 76 55 b7<br />
7d 04 0f b7 45 06 4c 8d 74 3d 00 66 83 f8 04 75 bc ba 04 00<br />
RSP: 0018:ffffc900007939e0 EFLAGS: 00010216<br />
RAX: ffffc90000793c78 RBX: ffff8880180cc000 RCX: ffffc90000793c90<br />
RDX: ffffc90000793cc0 RSI: ffff8880178d8cc0 RDI: ffff8880180cc000<br />
RBP: ffff8881178d8cbf R08: ffffc90000793c22 R09: 0000000000000000<br />
R10: ffff8880180cc000 R11: 0000000000000024 R12: 0000000000000000<br />
R13: 0000000000000020 R14: 0000000000000000 R15: ffffc90000793c22<br />
FS: 00007f873753cbc0(0000) GS:ffff88806bc00000(0000)<br />
knlGS:0000000000000000<br />
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br />
CR2: ffff8881178d8cc3 CR3: 00000000181ca000 CR4: 0000000000750ef0<br />
PKRU: 55555554<br />
Call Trace:<br />
<br />
? __die+0x23/0x70<br />
? page_fault_oops+0x181/0x480<br />
? search_module_extables+0x19/0x60<br />
? srso_alias_return_thunk+0x5/0xfbef5<br />
? exc_page_fault+0x1b6/0x1c0<br />
? asm_exc_page_fault+0x26/0x30<br />
? smb2_parse_contexts+0xa0/0x3a0 [cifs]<br />
SMB2_open+0x38d/0x5f0 [cifs]<br />
? smb2_is_path_accessible+0x138/0x260 [cifs]<br />
smb2_is_path_accessible+0x138/0x260 [cifs]<br />
cifs_is_path_remote+0x8d/0x230 [cifs]<br />
cifs_mount+0x7e/0x350 [cifs]<br />
cifs_smb3_do_mount+0x128/0x780 [cifs]<br />
smb3_get_tree+0xd9/0x290 [cifs]<br />
vfs_get_tree+0x2c/0x100<br />
? capable+0x37/0x70<br />
path_mount+0x2d7/0xb80<br />
? srso_alias_return_thunk+0x5/0xfbef5<br />
? _raw_spin_unlock_irqrestore+0x44/0x60<br />
__x64_sys_mount+0x11a/0x150<br />
do_syscall_64+0x47/0xf0<br />
entry_SYSCALL_64_after_hwframe+0x6f/0x77<br />
RIP: 0033:0x7f8737657b1e
Impact
Base Score 3.x
8.00
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.3 (including) | 5.4.277 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.5 (including) | 5.10.211 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.15.150 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.1.79 (including) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.8 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.7:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.7:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.7:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.7:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.7:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/13fb0fc4917621f3dfa285a27eaf7151d770b5e5
- https://git.kernel.org/stable/c/17a0f64cc02d4972e21c733d9f21d1c512963afa
- https://git.kernel.org/stable/c/1ae3c59355dc9882e09c020afe8ffbd895ad0f29
- https://git.kernel.org/stable/c/6726429c18c62dbf5e96ebbd522f262e016553fb
- https://git.kernel.org/stable/c/890bc4fac3c0973a49cac35f634579bebba7fe48
- https://git.kernel.org/stable/c/af1689a9b7701d9907dfc84d2a4b57c4bc907144
- https://git.kernel.org/stable/c/13fb0fc4917621f3dfa285a27eaf7151d770b5e5
- https://git.kernel.org/stable/c/17a0f64cc02d4972e21c733d9f21d1c512963afa
- https://git.kernel.org/stable/c/1ae3c59355dc9882e09c020afe8ffbd895ad0f29
- https://git.kernel.org/stable/c/6726429c18c62dbf5e96ebbd522f262e016553fb
- https://git.kernel.org/stable/c/890bc4fac3c0973a49cac35f634579bebba7fe48
- https://git.kernel.org/stable/c/af1689a9b7701d9907dfc84d2a4b57c4bc907144
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
- https://security.netapp.com/advisory/ntap-20250117-0009/



