Memory leak in Linux kernel - CVE-2025-40285
Published: December 8, 2025
Vulnerability identifier: #VU119284
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-40285
CWE-ID: CWE-401
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists due to memory leak within the smb2_sess_setup() function in fs/smb/server/smb2pdu.c. A local user can perform a denial of service (DoS) attack.
Affected software
Linux kernel
Ubuntu
linux (Ubuntu package)
linux-aws-fips (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-raspi (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-realtime (Ubuntu package)
linux-gcp (Ubuntu package)
linux-aws (Ubuntu package)
linux-oem-6.17 (Ubuntu package)
Ubuntu
linux (Ubuntu package)
linux-aws-fips (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-raspi (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-realtime (Ubuntu package)
linux-gcp (Ubuntu package)
linux-aws (Ubuntu package)
linux-oem-6.17 (Ubuntu package)
How to mitigate CVE-2025-40285
Install update from vendor's repository.
linux (Ubuntu package) - addressed in versions 6.8.0-106.106, 6.8.0-106.106.1, 6.8.0-106.106.1~22.04.1, 6.8.0-106.106~22.04.1, 6.8.0-1035.38, 6.8.0-1047.48, 6.8.0-1047.48~22.04.1, 6.8.0-1048.53, 6.8.0-1049.49, 6.8.0-1049.49~22.04.1, 6.8.0-1050.53, 6.8.0-1052.55, 6.8.0-1052.55~22.04.1, 6.17.0-14.14, 6.17.0-1006.7, 6.17.0-1008.8
linux-aws-fips (Ubuntu package) - addressed in versions 6.8.0-106.106+fips1, 6.8.0-1050.53+fips1, 6.8.0-1052.55+fips1
linux-xilinx (Ubuntu package) - update to 6.8.0-1029.30
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1049.52, 6.8.0-1049.52.1, 6.8.0-1049.52~22.04.1
linux-aws-6.8 (Ubuntu package) - update to 6.8.0-1050.53~22.04.1
linux-raspi (Ubuntu package) - addressed in versions 6.8.0-1050.54, 6.8.0-2040.41
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1051.57, 6.17.0-1008.8
linux-azure-6.8 (Ubuntu package) - update to 6.8.0-1051.57~22.04.1
linux-azure-fips (Ubuntu package) - update to 6.8.0-1052.58+fips1
linux-realtime (Ubuntu package) - addressed in versions 6.8.1-1045.46, 6.8.1-1045.46~22.04.1
linux-gcp (Ubuntu package) - update to 6.17.0-1007.7
linux-aws (Ubuntu package) - update to 6.17.0-1007.7
linux-oem-6.17 (Ubuntu package) - update to 6.17.0-1011.11
linux-aws-fips (Ubuntu package) - addressed in versions 6.8.0-106.106+fips1, 6.8.0-1050.53+fips1, 6.8.0-1052.55+fips1
linux-xilinx (Ubuntu package) - update to 6.8.0-1029.30
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1049.52, 6.8.0-1049.52.1, 6.8.0-1049.52~22.04.1
linux-aws-6.8 (Ubuntu package) - update to 6.8.0-1050.53~22.04.1
linux-raspi (Ubuntu package) - addressed in versions 6.8.0-1050.54, 6.8.0-2040.41
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1051.57, 6.17.0-1008.8
linux-azure-6.8 (Ubuntu package) - update to 6.8.0-1051.57~22.04.1
linux-azure-fips (Ubuntu package) - update to 6.8.0-1052.58+fips1
linux-realtime (Ubuntu package) - addressed in versions 6.8.1-1045.46, 6.8.1-1045.46~22.04.1
linux-gcp (Ubuntu package) - update to 6.17.0-1007.7
linux-aws (Ubuntu package) - update to 6.17.0-1007.7
linux-oem-6.17 (Ubuntu package) - update to 6.17.0-1011.11
External References
- https://git.kernel.org/stable/c/379510a815cb2e64eb0a379cb62295d6ade65df0
- https://git.kernel.org/stable/c/6fc935f798d44a8eb8a5e6659198399fbf57b981
- https://git.kernel.org/stable/c/d37b2c81c83d6c0d5ca582f4fe73c672983f9e0d
- https://git.kernel.org/stable/c/dcc51dfe6ff26b52cac106865a172ac982d78401
- https://git.kernel.org/stable/c/e671f9bb97805771380c98de944e2ceab6949188
Related Security Bulletins
- Memory leak in Linux kernel smb server
- Ubuntu update for linux-gcp
- Ubuntu update for linux
- Ubuntu update for linux-aws
- Ubuntu update for linux-oem-6.17
- Ubuntu update for linux-azure
- Ubuntu update for linux
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-realtime
- Ubuntu update for linux-aws-6.8
- Ubuntu update for linux-azure-6.8
- Ubuntu update for linux-azure
- Ubuntu update for linux-raspi
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-xilinx