cbcvebase.
CVE-2025-22040
published 2025-04-16

CVE-2025-22040: In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix session use-after-free in multichannel connection There is a race condition…

PriorityP345high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
0.61%
45.0th percentile
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix session use-after-free in multichannel connection There is a race condition between session setup and ksmbd_sessions_deregister. The session can be freed before the connection is added to channel list of session. This patch check reference count of session before freeing it.

Affected

22 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.135-1 (bookworm)linux 6.1.135-1 (bookworm)
debianlinux-6.1< linux 6.1.135-1 (bookworm)linux 6.1.135-1 (bookworm)
linuxlinux
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 596407adb9af1ee75fe7c7529607783d31b66e7f596407adb9af1ee75fe7c7529607783d31b66e7f
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 3980770cb1470054e6400fd976686659757267373980770cb1470054e6400fd97668665975726737
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 9069939d762138e232a6f79e3e1462682ed6a17d9069939d762138e232a6f79e3e1462682ed6a17d
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 94c281721d4ed2d972232414b91d98a6f5bdb16b94c281721d4ed2d972232414b91d98a6f5bdb16b
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 7dfbd4c43eed91dd2548a95236908025707a8dfd7dfbd4c43eed91dd2548a95236908025707a8dfd
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345dbfa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db
linuxlinux_kernel>= 0 < 6.1.135-16.1.135-1
linuxlinux_kernel>= 0 < 6.12.25-16.12.25-1
linuxlinux_kernel>= 0 < 6.12.25-16.12.25-1
linuxlinux_kernel>= 0 < 6.8.0-86.876.8.0-86.87
linuxlinux_kernel>= 0 < 6.14.0-22.226.14.0-22.22
linuxlinux_kernel>= 5.15 < 6.1.1346.1.134
linuxlinux_kernel>= 6.13 < 6.13.116.13.11
linuxlinux_kernel>= 6.14 < 6.14.26.14.2
linuxlinux_kernel>= 6.2 < 6.6.876.6.87
linuxlinux_kernel>= 6.7 < 6.12.236.12.23
msrcazl3_kernel_6.6.85.1-4_on_azure_linux_3.0
msrccbl2_kernel_5.15.182.1-1_on_cbl_mariner_2.0

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
vendor_msrc7.8HIGH
vendor_ubuntu7.1HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.