Description
An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.18 before 5.18.18. fs/ksmbd/smb2pdu.c lacks length validation in the non-padding case in smb2_write.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 5.19.6-1 | — |
| Debian 13 | linux | 5.19.6-1 | — |
| Debian 12 | linux | 5.19.6-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | 5.15.0-1014.16 | — |
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux +1 | 5.15.0-60.66 | USN-5851-1 |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1030.34 | USN-5876-1 |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1033.40 | USN-5851-1 |
| Ubuntu 22.04 LTS | linux-azure-fde | 5.15.0-1033.40.1 | USN-5876-1 |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1029.36 | USN-5876-1 |
| Ubuntu 22.04 LTS | linux-gke | 5.15.0-1027.32 | USN-5860-1 |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1015.19 | USN-5851-1 |
| Ubuntu 22.04 LTS | linux-ibm | 5.15.0-1025.28 | USN-5851-1 |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1025.30 | USN-5876-1 |
| Ubuntu 22.04 LTS | linux-kvm | 5.15.0-1028.33 | USN-5851-1 |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1017.17 | — |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1029.35 | USN-5851-1 |
| Ubuntu 22.04 LTS | linux-raspi | 5.15.0-1024.26 | USN-5851-1 |
| Ubuntu 22.04 LTS | linux-riscv +3 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-aws-5.15 | 5.15.0-1030.34~20.04.1 | USN-5876-1 |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1033.40~20.04.1 | USN-5851-1 |
| Ubuntu 20.04 LTS | linux-azure-fde-5.15 | 5.15.0-1033.40~20.04.1.1 | — |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1029.36~20.04.1 | USN-5876-1 |
| Ubuntu 20.04 LTS | linux-gke-5.15 | 5.15.0-1027.32~20.04.1 | USN-5877-1 |
| Ubuntu 20.04 LTS | linux-gkeop-5.15 | 5.15.0-1015.19~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-hwe-5.15 +1 | 5.15.0-60.66~20.04.1 | USN-5851-1 |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1025.30~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1029.35~20.04.1 | USN-5851-1 |
| Ubuntu 20.04 LTS | linux-riscv +22 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-riscv-5.15 | 5.15.0-1029.33~20.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +13 | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | hyperv-daemons | 5.15.92.1-1 | — |
| Azure Linux 2 (CBL-Mariner) | kernel | 5.15.92.1-2 | — |
Advisories 5
- USN-5876-1 linux-aws, linux-aws-5.15, linux-azure-fde, linux-gcp, linux-gcp-5.15, linux-intel-iotg vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-5851-1 linux, linux-azure, linux-azure-5.15, linux-gkeop, linux-hwe-5.15, linux-ibm, linux-kvm, linux-lowlatency, linux-lowlatency-hwe-5.15, linux-oracle, linux-oracle-5.15, linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-5877-1 linux-gke-5.15 vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-5860-1 linux-gke vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- WID-SEC-2022-2403 Linux Kernel ksmbd: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 15, 2023
References
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.18.18
- https://github.com/torvalds/linux/commit/158a66b245739e15858de42c0ba60fcf3de9b8e6
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=158a66b245739e15858de42c0ba60fcf3de9b8e6
- http://www.openwall.com/lists/oss-security/2022/12/23/10