CVE-2024-49988
published high CVSS 3.1 · 8.8ksmbd: add refcnt to ksmbd_conn struct
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < 18f06bacc197d4ac9b518ad1c69999bc3d83e7aa · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 9fd3cde4628bcd3549ab95061f2bab74d2ed4f3b · 0626e6641f6b467447c81dd7678a69c66f7746cf to < e9dac92f4482a382e8c0fe1bc243da5fc3526b0c · 0626e6641f6b467447c81dd7678a69c66f7746cf to < ee426bfb9d09b29987369b897fe9b6485ac2be27 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.6.55 through 6.6.* (unaffected · semver) · 6.10.14 through 6.10.* (unaffected · semver) · 6.11.3 through 6.11.* (unaffected · semver) · 6.12 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 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermaarch64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermppc64le | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longterms390x | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermx86_64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermaarch64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermppc64le | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longterms390x | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermx86_64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1023 | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1023 | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1023 | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1025 | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1025 | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1025 | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1022-nvidia-64k | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1024-gcp | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1024-gcp-64k | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-54-lowlatency-64k | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-57-generic-64k | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1024 | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1024 | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-headers-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-headers-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1022-nvidia-64k | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1024-gcp | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1024-gcp-64k | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-headers-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-headers-6.8.0-54-lowlatency-64k | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-headers-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-headers-6.8.0-57-generic-64k | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-57 | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-57 | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-57 | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-image-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1022-nvidia-64k | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1024-gcp | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1024-gcp-64k | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-54-lowlatency-64k | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-57-generic-64k | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-54 | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-54 | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-tools-6.8.0-54 | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-modules-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-modules-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1022-nvidia-64k | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1024-gcp | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-modules-6.8.0-1024-gcp-64k | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-modules-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-modules-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-modules-6.8.0-54-lowlatency-64k | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-modules-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-modules-6.8.0-57-generic-64k | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-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: ksmbd: add refcnt to ksmbd_conn struct When sending an oplock break request, opinfo->conn is used, But freed ->conn can be used on multichannel. This patch add a reference count to the ksmbd_conn struct so that it can be freed when it is no longer used.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The vulnerable code is in the in-kernel SMB server (fs/smb/server/), driven entirely by SMB2/3 traffic on TCP/445 — the attacker triggers it by opening connections, binding a second channel, dropping the first, and issuing CREATE/WRITE requests that force an oplock/lease break. No local access is needed. AC:L - The attacker controls both sides of the sequence: they create the oplock/lease, they establish and tear down the channel that frees the ksmbd_conn, and they choose when to trigger the break that dereferences the stale pointer, so it is repeatable at will and can be retried indefinitely across connections. Heap grooming to reclaim the freed conn is done with attacker-sent SMB buffers, and the config-independent r_count/RELEASING TOCTOU offers an additional path. PR:L - An authenticated SMB session is required — oplocks/leases are only created after session setup and tree connect, and multichannel binding is explicitly refused for guest users (user_guest() → -EOPNOTSUPP), so valid credentials are needed. No administrative or share-admin privileges are required beyond ordinary file access on an exported share. UI:N - The attacker performs every step from its own SMB connections — open with a batch oplock/lease, bind a channel, disconnect it, then re-open or write the file to force the break. No action by an administrator or another user is required. S:U - The use-after-free corrupts kernel heap memory belonging to the ksmbd server and is exploited within the kernel's own security authority; no hypervisor, IOMMU, or sandbox boundary is crossed. C:H - The freed struct ksmbd_conn is read back in multiple paths (compare_guid_key reads conn->ClientGUID, ksmbd_conn_write follows conn->transport->ops), so reclaiming the slab object with attacker-shaped data turns these into a kernel-memory read/disclosure primitive, and break notifications built from the stale conn can leak kernel data to the wire. I:H - The same dangling pointer is written through — atomic_inc/dec on conn->r_count, mutex_lock(&conn->srv_mutex), and wake_up(&conn->r_count_q) traversing a freed waitqueue — and conn->transport->ops->writev is called indirectly, giving controlled-write and control-flow-hijack potential for full kernel compromise. A:H - Dereferencing and writing to the freed ksmbd_conn reliably corrupts the slab and oopses or panics the kernel (mutex/waitqueue operations on freed memory, indirect call through a stale transport pointer), taking down the whole system.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < 18f06bacc197d4ac9b518ad1c69999bc3d83e7aa (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 9fd3cde4628bcd3549ab95061f2bab74d2ed4f3b (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < e9dac92f4482a382e8c0fe1bc243da5fc3526b0c (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < ee426bfb9d09b29987369b897fe9b6485ac2be27 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)6.6.55 through 6.6.* (unaffected · semver)6.10.14 through 6.10.* (unaffected · semver)6.11.3 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
2Linux · cna
ksmbd: add refcnt to ksmbd_conn struct
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e7aad684ccfc377b4a83e6a050cb03fc109edca86053c761e0f827b625f042df
- Ingested
- 23 Sep 2026, 08:29:21 UTC
- Source record
- Official CVE record