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-31707

published high CVSS 3.1 · 7.1

ksmbd: validate response sizes in ipc_validate_msg()

Published
01 May 2026, 13:56:05 UTC
Updated
30 Oct 2026, 12:24:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < 52518503a1a00bc33e9522c4eb05df023e3ae978 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < bf396208418371174869baba9434535cd3288e80 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 7dd0c858e1909769a4c91842724315ee74f1a5f1 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 299db777ea0cfa5c407e41b045c24a14c034c27b · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 99c631d0366c1eab8fb188fe66425f4581ebdde4 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < d6a6aa81eac2c9bff66dc6e191179cb69a14426b · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.141 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
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.192-1 DLA-4906-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Ubuntu jammy linux-aws-6.8 Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 jammy linux-aws-6.8-cloud-tools-6.8.0-1061 Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-aws-6.8-headers-6.8.0-1061 Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-aws-6.8-tools-6.8.0-1061 Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-azure-6.8 Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-azure-6.8-cloud-tools-6.8.0-1063 Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-azure-6.8-headers-6.8.0-1063 Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-azure-6.8-tools-6.8.0-1063 Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-azure-fde-6.8 Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-azure-fde-6.8-cloud-tools-6.8.0-1062 Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-azure-fde-6.8-headers-6.8.0-1062 Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-azure-fde-6.8-tools-6.8.0-1062 Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-buildinfo-6.8.0-1058-oracle Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-buildinfo-6.8.0-1058-oracle-64k Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-buildinfo-6.8.0-1059-nvidia Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-buildinfo-6.8.0-1059-nvidia-64k Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-buildinfo-6.8.0-1061-aws Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-buildinfo-6.8.0-1061-aws-64k Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-buildinfo-6.8.0-1061-ibm Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-buildinfo-6.8.0-1062-azure-fde Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-buildinfo-6.8.0-1063-azure Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-buildinfo-6.8.0-1064-gcp Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-buildinfo-6.8.0-1064-gcp-64k Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-buildinfo-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-buildinfo-6.8.0-136-generic-64k Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-buildinfo-6.8.0-136-lowlatency Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-buildinfo-6.8.0-136-lowlatency-64k Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-buildinfo-6.8.1-1056-realtime Advisory build 6.8.1-1056.57~22.04.2 USN-8567-1
Ubuntu jammy linux-cloud-tools-6.8.0-1061-aws Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-cloud-tools-6.8.0-1061-aws-64k Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-cloud-tools-6.8.0-1062-azure-fde Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-cloud-tools-6.8.0-1063-azure Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-cloud-tools-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-cloud-tools-6.8.0-136-lowlatency Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-cloud-tools-6.8.1-1056-realtime Advisory build 6.8.1-1056.57~22.04.2 USN-8567-1
Ubuntu jammy linux-gcp-6.8 Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-gcp-6.8-headers-6.8.0-1064 Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-gcp-6.8-tools-6.8.0-1064 Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-headers-6.8.0-1058-oracle Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-headers-6.8.0-1058-oracle-64k Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-headers-6.8.0-1059-nvidia Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-headers-6.8.0-1059-nvidia-64k Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-headers-6.8.0-1061-aws Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-headers-6.8.0-1061-aws-64k Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-headers-6.8.0-1061-ibm Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-headers-6.8.0-1062-azure-fde Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-headers-6.8.0-1063-azure Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-headers-6.8.0-1064-gcp Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-headers-6.8.0-1064-gcp-64k Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-headers-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-headers-6.8.0-136-generic-64k Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-headers-6.8.0-136-lowlatency Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-headers-6.8.0-136-lowlatency-64k Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-headers-6.8.1-1056-realtime Advisory build 6.8.1-1056.57~22.04.2 USN-8567-1
Ubuntu jammy linux-hwe-6.8 Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-hwe-6.8-cloud-tools-6.8.0-136 Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-hwe-6.8-headers-6.8.0-136 Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-hwe-6.8-tools-6.8.0-136 Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-ibm-6.8 Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-ibm-6.8-headers-6.8.0-1061 Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-ibm-6.8-tools-6.8.0-1061 Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-image-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-image-unsigned-6.8.0-1058-oracle Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-image-unsigned-6.8.0-1058-oracle-64k Advisory build 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu jammy linux-image-unsigned-6.8.0-1059-nvidia Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-image-unsigned-6.8.0-1059-nvidia-64k Advisory build 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu jammy linux-image-unsigned-6.8.0-1061-aws Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-image-unsigned-6.8.0-1061-aws-64k Advisory build 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu jammy linux-image-unsigned-6.8.0-1061-ibm Advisory build 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu jammy linux-image-unsigned-6.8.0-1062-azure-fde Advisory build 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu jammy linux-image-unsigned-6.8.0-1063-azure Advisory build 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu jammy linux-image-unsigned-6.8.0-1064-gcp Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-image-unsigned-6.8.0-1064-gcp-64k Advisory build 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu jammy linux-image-unsigned-6.8.0-136-generic Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-image-unsigned-6.8.0-136-generic-64k Advisory build 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu jammy linux-image-unsigned-6.8.0-136-lowlatency Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-image-unsigned-6.8.0-136-lowlatency-64k Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-image-unsigned-6.8.1-1056-realtime Advisory build 6.8.1-1056.57~22.04.2 USN-8567-1
Ubuntu jammy linux-lowlatency-hwe-6.8 Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-136 Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-lowlatency-hwe-6.8-headers-6.8.0-136 Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-lowlatency-hwe-6.8-lib-rust-6.8.0-136-lowlatency Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu jammy linux-lowlatency-hwe-6.8-tools-6.8.0-136 Advisory build 6.8.0-136.136.2~22.04.1 USN-8574-2

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

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate response sizes in ipc_validate_msg() ipc_validate_msg() computes the expected message size for each response type by adding (or multiplying) attacker-controlled fields from the daemon response to a fixed struct size in unsigned int arithmetic. Three cases can overflow: KSMBD_EVENT_RPC_REQUEST: msg_sz = sizeof(struct ksmbd_rpc_command) + resp->payload_sz; KSMBD_EVENT_SHARE_CONFIG_REQUEST: msg_sz = sizeof(struct ksmbd_share_config_response) + resp->payload_sz; KSMBD_EVENT_LOGIN_REQUEST_EXT: msg_sz = sizeof(struct ksmbd_login_response_ext) + resp->ngroups * sizeof(gid_t); resp->payload_sz is __u32 and resp->ngroups is __s32. Each addition can wrap in unsigned int; the multiplication by sizeof(gid_t) mixes signed and size_t, so a negative ngroups is converted to SIZE_MAX before the multiply. A wrapped value of msg_sz that happens to equal entry->msg_sz bypasses the size check on the next line, and downstream consumers (smb2pdu.c:6742 memcpy using rpc_resp->payload_sz, kmemdup in ksmbd_alloc_user using resp_ext->ngroups) then trust the unverified length. Use check_add_overflow() on the RPC_REQUEST and SHARE_CONFIG_REQUEST paths to detect integer overflow without constraining functional payload size; userspace ksmbd-tools grows NDR responses in 4096-byte chunks for calls like NetShareEnumAll, so a hard transport cap is unworkable on the response side. For LOGIN_REQUEST_EXT, reject resp->ngroups outside the signed [0, NGROUPS_MAX] range up front and report the error from ipc_validate_msg() so it fires at the IPC boundary; with that bound the subsequent multiplication and addition stay well below UINT_MAX. The now-redundant ngroups check and pr_err in ksmbd_alloc_user() are removed. This is the response-side analogue of aab98e2dbd64 ("ksmbd: fix integer overflows on 32 bit systems"), which hardened the request side.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

27

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Scenarios
en: AV:L - The malformed length fields enter the kernel through ksmbd generic-netlink IPC response messages, not directly from SMB network packets. SMB traffic can create the pending request, but the attacker must be local to inject or control the IPC response. AC:L - The attacker controls the response fields and can choose wrapped sizes that satisfy the old equality check. Any response race is practical because handles are small/predictable and the attacker can trigger repeated pending requests. PR:L - The IPC response handlers are gated by CAP_NET_ADMIN when the default check is enabled, but the generic-netlink family is netns-aware and CAP_NET_ADMIN is commonly reachable from an unprivileged user namespace. If that check is disabled, no capability is needed, so Low is the conservative privilege choice. UI:N - No victim user action is required once ksmbd is running. The attacker can trigger the SMB-side request and send the crafted IPC response directly. S:U - The vulnerability affects kernel memory and ksmbd state within the same host security authority. It does not cross a VM, IOMMU, or separate sandbox boundary. C:H - The wrapped RPC response size can make downstream code copy data beyond the validated response buffer, including into SMB responses. This can disclose kernel heap memory and is best scored as high confidentiality impact. I:N - The investigated consumers primarily perform oversized reads from the undersized IPC response or fail large allocations. I did not find a direct out-of-bounds write or control-flow overwrite primitive from this bug alone. A:H - The oversized copies and huge allocations can trigger kernel faults, memory exhaustion, or service failure. Repeated crafted responses can therefore produce high availability impact.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0626e6641f6b467447c81dd7678a69c66f7746cf to < 52518503a1a00bc33e9522c4eb05df023e3ae978 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < bf396208418371174869baba9434535cd3288e80 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 7dd0c858e1909769a4c91842724315ee74f1a5f1 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 299db777ea0cfa5c407e41b045c24a14c034c27b (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 99c631d0366c1eab8fb188fe66425f4581ebdde4 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < d6a6aa81eac2c9bff66dc6e191179cb69a14426b (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.141 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

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

ksmbd: validate response sizes in ipc_validate_msg()

Provenance

Schema
5.2
Searchable
yes
Content hash
7aa7800436732684353a2a7a40796561c13e087dea8f87d7f2f85ad5c8c3e571
Ingested
30 Oct 2026, 12:31:36 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