Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-31711

published high CVSS 3.1 · 7.5

smb: server: fix active_num_conn leak on transport allocation failure

Published
01 May 2026, 13:56:07 UTC
Updated
15 Oct 2026, 01:18:07 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux4210c3555db4b38bade92331b153e583261f05f9 to < dc2e7d595d68cf1be1ba64e3d30ebf3266bf7242 · d5d7847e57ac69fa99c18b363a34419bcdb5a281 to < 60734c8bc3b4aa0672e251f08dda81977e4b5387 · 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < 97f8d2648ef4871e4cd335e2d769cb40054a6772 · 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < 295a9fc6789d1011c36ded9f0f2907bb34fa0de4 · 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < 283027aa93380380a0994f35dde3ec95318f2654 · 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < fb48185bcd946d42de7017cf27f912f8ab26acf0 · 0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < 6551300dc452ac16a855a83dbd1e74899542d3b3 · 5.15.91 to < 5.15.210 · 6.1.9 to < 6.1.175 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 5.15.210 through 5.15.* (unaffected · semver) · 6.1.175 through 6.1.* (unaffected · semver) · 6.6.136 through 6.6.* (unaffected · semver) · 6.12.84 through 6.12.* (unaffected · semver) · 6.18.25 through 6.18.* (unaffected · semver) · 7.0.2 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Siemens — SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 and later · Other versions: unknown Affected Not stated siemens-SADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.176-1 DLA-4665-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Ubuntu focal linux-aws-5.15 Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Debian bullseye linux-6.1 Advisory build 6.1.176-1~deb11u1 DLA-4671-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Ubuntu focal linux-aws-5.15-cloud-tools-5.15.0-1117 Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-aws-5.15-headers-5.15.0-1117 Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-aws-5.15-tools-5.15.0-1117 Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-azure-5.15 Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-azure-5.15-cloud-tools-5.15.0-1123 Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-azure-5.15-headers-5.15.0-1123 Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-azure-5.15-tools-5.15.0-1123 Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-azure-fde-5.15 Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-azure-fde-5.15-cloud-tools-5.15.0-1122 Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-azure-fde-5.15-headers-5.15.0-1122 Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-azure-fde-5.15-tools-5.15.0-1122 Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1070-nvidia-tegra Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-buildinfo-5.15.0-1070-nvidia-tegra-rt Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-buildinfo-5.15.0-1111-ibm Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1112-intel-iotg Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1114-oracle Advisory build 5.15.0-1114.120~20.04.1 USN-8879-1
Ubuntu focal linux-buildinfo-5.15.0-1117-aws Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1118-gcp Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-buildinfo-5.15.0-1122-azure-fde Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-1123-azure Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-195-lowlatency Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-195-lowlatency-64k Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-198-generic-64k Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-buildinfo-5.15.0-198-generic-lpae Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-1112-intel-iotg Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-1117-aws Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-1122-azure-fde Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-1123-azure Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-195-lowlatency Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-cloud-tools-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-gcp-5.15 Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-gcp-5.15-headers-5.15.0-1118 Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-gcp-5.15-tools-5.15.0-1118 Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-headers-5.15.0-1070-nvidia-tegra Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-headers-5.15.0-1070-nvidia-tegra-rt Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-headers-5.15.0-1111-ibm Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-1112-intel-iotg Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-1114-oracle Advisory build 5.15.0-1114.120~20.04.1 USN-8879-1
Ubuntu focal linux-headers-5.15.0-1117-aws Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-1118-gcp Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-headers-5.15.0-1122-azure-fde Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-1123-azure Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-195-lowlatency Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-195-lowlatency-64k Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-198-generic-64k Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-headers-5.15.0-198-generic-lpae Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-hwe-5.15 Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-hwe-5.15-cloud-tools-5.15.0-198 Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-hwe-5.15-headers-5.15.0-198 Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-hwe-5.15-tools-5.15.0-198 Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-ibm-5.15 Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-ibm-5.15-headers-5.15.0-1111 Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-ibm-5.15-source-5.15.0 Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-ibm-5.15-tools-5.15.0-1111 Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-image-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-image-5.15.0-198-generic-lpae Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1070-nvidia-tegra Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-image-unsigned-5.15.0-1070-nvidia-tegra-rt Advisory build 5.15.0-1070.72~20.04.1 USN-8963-1
Ubuntu focal linux-image-unsigned-5.15.0-1111-ibm Advisory build 5.15.0-1111.115~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1112-intel-iotg Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1114-oracle Advisory build 5.15.0-1114.120~20.04.1 USN-8879-1
Ubuntu focal linux-image-unsigned-5.15.0-1117-aws Advisory build 5.15.0-1117.124~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1118-gcp Advisory build 5.15.0-1118.128~20.04.1 USN-8878-1
Ubuntu focal linux-image-unsigned-5.15.0-1122-azure-fde Advisory build 5.15.0-1122.131~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-1123-azure Advisory build 5.15.0-1123.132~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-195-lowlatency Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-195-lowlatency-64k Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-198-generic Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-image-unsigned-5.15.0-198-generic-64k Advisory build 5.15.0-198.208~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15 Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-5.15.0-1112 Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-common Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15-headers-5.15.0-1112 Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15-tools-5.15.0-1112 Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15-tools-common Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-intel-iotg-5.15-tools-host Advisory build 5.15.0-1112.118~20.04.1 USN-8875-1
Ubuntu focal linux-lowlatency-hwe-5.15 Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-195 Advisory build 5.15.0-195.205~20.04.1 USN-8875-1
Ubuntu focal linux-lowlatency-hwe-5.15-headers-5.15.0-195 Advisory build 5.15.0-195.205~20.04.1 USN-8875-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: smb: server: fix active_num_conn leak on transport allocation failure Commit 77ffbcac4e56 ("smb: server: fix leak of active_num_conn in ksmbd_tcp_new_connection()") addressed the kthread_run() failure path. The earlier alloc_transport() == NULL path in the same function has the same leak, is reachable pre-authentication via any TCP connect to port 445, and was empirically reproduced on UML (ARCH=um, v7.0-rc7): a small number of forced allocation failures were sufficient to put ksmbd into a state where every subsequent connection attempt was rejected for the remainder of the boot. ksmbd_kthread_fn() increments active_num_conn before calling ksmbd_tcp_new_connection() and discards the return value, so when alloc_transport() returns NULL the socket is released and -ENOMEM returned without decrementing the counter. Each such failure permanently consumes one slot from the max_connections pool; once cumulative failures reach the cap, atomic_inc_return() hits the threshold on every subsequent accept and every new connection is rejected. The counter is only reset by module reload. An unauthenticated remote attacker can drive the server toward the memory pressure that makes alloc_transport() fail by holding open connections with large RFC1002 lengths up to MAX_STREAM_PROT_LEN (0x00FFFFFF); natural transient allocation failures on a loaded host produce the same drift more slowly. Mirror the existing rollback pattern in ksmbd_kthread_fn(): on the alloc_transport() failure path, decrement active_num_conn gated on server_conf.max_connections. Repro details: with the patch reverted, forced alloc_transport() NULL returns leaked counter slots and subsequent connection attempts -- including legitimate connects issued after the forced-fail window had closed -- were all rejected with "Limit the maximum number of connections". With this patch applied, the same connect sequence produces no rejections and the counter cycles cleanly between zero and one on every accept.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

38

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scenarios
en: AV:N - ksmbd listens on a TCP socket for SMB connections, typically port 445, and the vulnerable path is reached by a remote network connection. AC:L - The leak requires transport allocation failure, but a remote unauthenticated client can drive memory pressure with many connections and large pre-auth RFC1002 lengths; there is no race or condition outside the attacker’s influence in the worst reasonable scenario. PR:N - The counter is incremented and the failing alloc_transport path is reached immediately after TCP accept, before SMB negotiation, session setup, or credential checks. UI:N - No user action is required; the attacker only needs to connect to the exposed ksmbd service. S:U - The impact remains within the kernel/ksmbd server security authority and does not cross a VM, sandbox, or hardware isolation boundary. C:N - This is an accounting leak of active_num_conn, not a memory disclosure or memory corruption primitive. I:N - The bug does not provide data modification, arbitrary write, or control-flow corruption. A:H - Each failed allocation permanently consumes a max_connections slot, and once the cap is exhausted all subsequent ksmbd connection attempts are rejected until module reload or reboot.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 4210c3555db4b38bade92331b153e583261f05f9 to < dc2e7d595d68cf1be1ba64e3d30ebf3266bf7242 (affected · git)d5d7847e57ac69fa99c18b363a34419bcdb5a281 to < 60734c8bc3b4aa0672e251f08dda81977e4b5387 (affected · git)0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < 97f8d2648ef4871e4cd335e2d769cb40054a6772 (affected · git)0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < 295a9fc6789d1011c36ded9f0f2907bb34fa0de4 (affected · git)0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < 283027aa93380380a0994f35dde3ec95318f2654 (affected · git)0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < fb48185bcd946d42de7017cf27f912f8ab26acf0 (affected · git)0d0d4680db22eda1eea785c47bbf66a9b33a8b16 to < 6551300dc452ac16a855a83dbd1e74899542d3b3 (affected · git)5.15.91 to < 5.15.210 (affected · semver)6.1.9 to < 6.1.175 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.2 (affected)0 to < 6.2 (unaffected · semver)5.15.210 through 5.15.* (unaffected · semver)6.1.175 through 6.1.* (unaffected · semver)6.6.136 through 6.6.* (unaffected · semver)6.12.84 through 6.12.* (unaffected · semver)6.18.25 through 6.18.* (unaffected · semver)7.0.2 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 0 and later (affected · custom)Default: unknown siemens-SADP · adp

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

2

Linux · cna

smb: server: fix active_num_conn leak on transport allocation failure

siemens-SADP · adp

Provenance

Schema
5.2
Searchable
yes
Content hash
5f3abb0387bcc8e5fd44d0ddd1950a45091b9c0125b50736127803d97a5ef510
Ingested
15 Oct 2026, 13:15:12 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected