Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix OOBs when building SMB2_IOCTL request
When using encryption, either enforced by the server or when using ‘seal’ mount option, the client will squash all compound request buffers down for encryption into a single iov in smb2_set_next_command().
SMB2_ioctl_init() allocates a small buffer (448 bytes) to hold the SMB2_IOCTL request in the first iov, and if the user passes an input buffer that is greater than 328 bytes, smb2_set_next_command() will end up writing off the end of @rqst->iov[0].iov_base as shown below:
mount.cifs //srv/share /mnt -o …,seal ln -s $(perl -e “print(‘a’)for 1..1024”) /mnt/link
BUG: KASAN: slab-out-of-bounds in smb2_set_next_command.cold+0x1d6/0x24c [cifs] Write of size 4116 at addr ffff8881148fcab8 by task ln/859
CPU: 1 UID: 0 PID: 859 Comm: ln Not tainted 6.12.0-rc3 #1
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS
1.16.3-2.fc40 04/01/2014
Call Trace:
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , Oracle Linux 7 ELS , TuxCare 9.6 ESU , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- kernel @ 5.14.0 (+5 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 9 | Released |
50 kernels
|
| Amazon Linux 2023 | Planned | — |
| Amazon Linux 2 5.10 | Will Not Fix | — |
| Amazon Linux 2 5.4 | Will Not Fix | — |
| Debian 11 | Released |
33 kernels
|
| Debian 11 cloud | Released |
13 kernels
|
| Debian 12 | Released |
17 kernels
|
| Oracle Linux 7 UEK 6 | Released |
110 kernels
|
| Oracle Linux 8 UEK 6 | Released |
111 kernels
|
| Oracle Linux 8 UEK 7 | Released |
47 kernels
|
| Oracle Linux 9 | Released |
56 kernels
|
| Oracle Linux 9 UEK 7 | Released |
47 kernels
|
| Proxmox VE 7 5.15 | Released |
47 kernels
|
| RHEL 9 | Released |
50 kernels
|
| Rocky Linux 9 | Released |
49 kernels
|
| Ubuntu 18.04 AWS Focal | Released |
56 kernels
|
| Ubuntu 18.04 HWE Focal | Released |
69 kernels
|
| Ubuntu 20.04 | Released |
121 kernels
|
| Ubuntu 20.04 AWS | Released |
104 kernels
|
| Ubuntu 20.04 Azure | Released |
94 kernels
|
| Ubuntu 20.04 GCP | Released |
27 kernels
|
| Ubuntu 20.04 HWE AWS | Released |
52 kernels
|
| Ubuntu 20.04 HWE Azure | Released |
34 kernels
|
| Ubuntu 22.04 | Released |
67 kernels
|
| Ubuntu 22.04 AWS | Released |
58 kernels
|
| Ubuntu 22.04 Azure | Released |
54 kernels
|
| Ubuntu 24.04 | Released |
20 kernels
|
| Ubuntu 24.04 AWS | Ready For Release | — |