Vulnerability · Published Oct 3, 2023 · Assigned by Google
CVE-2023-5345Use-after-free in Linux kernel's fs/smb/client component
High 7.8
In plain English
A high-severity use-after-free in Kernel from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A use-after-free vulnerability in the Linux kernel's fs/smb/client component can be exploited to achieve local privilege escalation. In case of an error in smb3_fs_context_parse_param, ctx->password was freed but the field was not set to NULL which could lead to double free. We recommend upgrading past commit e6e43b8aa7cd3c3af686caf0c2e11819a886d705.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.64-1 | DEBIAN-CVE-2023-5345 |
| Debian:13 | linux | 6.5.6-1 | DEBIAN-CVE-2023-5345 |
| Debian:14 | linux | 6.5.6-1 | DEBIAN-CVE-2023-5345 |
| Rocky Linux:9 | kernel | 0:5.14.0-362.13.1.el9_3.cloud.0.3 | RXSA-2023:7749 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | 6.2.0-1016.16~22.04.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | 6.2.0-1016.16~22.04.1 | USN-6502-1 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | 6.5.0-1010.10~22.04.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1054.62 | USN-6607-1 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1054.62 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | 6.2.0-1017.17~22.04.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | 6.2.0-1017.17~22.04.1 | USN-6502-4 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1009.9~22.04.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1054.62.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1054.62.1 | USN-6607-1 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | 6.2.0-1017.17~22.04.1.1 | USN-6502-4 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | 6.2.0-1017.17~22.04.1.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | 6.2.0-1019.21~22.04.1 | USN-6502-4 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | 6.2.0-1019.21~22.04.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | 6.2.0-37.38~22.04.1 | USN-6502-1 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | 6.2.0-37.38~22.04.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | 6.2.0-1017.17~22.04.1 | USN-6502-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | 6.2.0-1017.17~22.04.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | 6.2.0-1012.12 | USN-6502-3 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | 6.2.0-1012.12 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1007.7 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | 6.1.0-1025.25 | USN-6461-1 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | 6.1.0-1025.25 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1008.8 | USN-6503-1 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1008.8 | UBUNTU-CVE-2023-5345 |
| Ubuntu:24.04:LTS | linux-raspi | 6.7.0-1001.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | 6.2.0-1009.10~22.04.1 | UBUNTU-CVE-2023-5345 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | 6.2.0-1009.10~22.04.1 | USN-6520-1 |
Affected products (as reported)
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e6e43b8aa7cd3c3af686caf0c2e11819a886d705 patch
- https://kernel.dance/e6e43b8aa7cd3c3af686caf0c2e11819a886d705
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/V5PDNWPKAP3WL5RQZ4RIDS6MG32OHH5R/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GISYSL3F6WIEVGHJGLC2MFNTUXHPTKQH/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GPMICQ2HVZO5UAM5KPXHAZKA2U3ZDOO6/
- http://packetstormsecurity.com/files/177029/Kernel-Live-Patch-Security-Notice-LSN-0100-1.html