CVE-2024-50263
published high CVSS 3.1 · 7.8fork: only invoke khugepaged, ksm hooks if no error
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd2406291483775ecddaee929231a39c70c08fda2 to < 3b85aa0da8cd01173b9afd1f70080fbb9576c4b0 · d2406291483775ecddaee929231a39c70c08fda2 to < 985da552a98e27096444508ce5d853244019111f · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.8 (affected) · 0 to < 6.8 (unaffected · semver) · 6.11.7 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-1027.29~22.04.1 | USN-7451-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-1027 | Advisory build | 6.8.0-1027.29~22.04.1 | USN-7451-1 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1027 | Advisory build | 6.8.0-1027.29~22.04.1 | USN-7451-1 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1027 | Advisory build | 6.8.0-1027.29~22.04.1 | USN-7451-1 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1027 | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1027 | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1027 | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1024-oracle | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1024-oracle-64k | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1026-nvidia | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1026-nvidia-64k | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1027-aws | Advisory build | 6.8.0-1027.29~22.04.1 | USN-7451-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1027-azure | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1028-gcp | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1028-gcp-64k | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-58-generic | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-58-generic-64k | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-58-lowlatency | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-58-lowlatency-64k | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1027-aws | Advisory build | 6.8.0-1027.29~22.04.1 | USN-7451-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1027-azure | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-58-generic | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-58-lowlatency | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1028 | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1028 | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1024-oracle | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1024-oracle-64k | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1026-nvidia | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1026-nvidia-64k | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1027-aws | Advisory build | 6.8.0-1027.29~22.04.1 | USN-7451-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1027-azure | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1028-gcp | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1028-gcp-64k | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-headers-6.8.0-58-generic | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-headers-6.8.0-58-generic-64k | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-headers-6.8.0-58-lowlatency | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-headers-6.8.0-58-lowlatency-64k | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-58 | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-58 | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-58 | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-image-6.8.0-58-generic | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1024-oracle | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1024-oracle-64k | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1026-nvidia | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1026-nvidia-64k | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1027-aws | Advisory build | 6.8.0-1027.29~22.04.1 | USN-7451-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1027-azure | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1028-gcp | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1028-gcp-64k | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-58-generic | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-58-generic-64k | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-58-lowlatency | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-58-lowlatency-64k | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-58 | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-58 | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-58-lowlatency | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-tools-6.8.0-58 | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1024-oracle | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1024-oracle-64k | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1026-nvidia | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1026-nvidia-64k | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1027-aws | Advisory build | 6.8.0-1027.29~22.04.1 | USN-7451-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1027-azure | Advisory build | 6.8.0-1027.32~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1028-gcp | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1028-gcp-64k | Advisory build | 6.8.0-1028.30~22.04.1 | USN-7452-1 |
| Ubuntu | jammy | linux-modules-6.8.0-58-generic | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-modules-6.8.0-58-generic-64k | Advisory build | 6.8.0-58.60~22.04.1 | USN-7449-2 |
| Ubuntu | jammy | linux-modules-6.8.0-58-lowlatency | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-6.8.0-58-lowlatency-64k | Advisory build | 6.8.0-58.60.1~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1024-oracle | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1024-oracle-64k | Advisory build | 6.8.0-1024.25~22.04.1 | USN-7449-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1026-nvidia | Advisory build | 6.8.0-1026.29~22.04.1 | USN-7449-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: fork: only invoke khugepaged, ksm hooks if no error There is no reason to invoke these hooks early against an mm that is in an incomplete state. The change in commit d24062914837 ("fork: use __mt_dup() to duplicate maple tree in dup_mmap()") makes this more pertinent as we may be in a state where entries in the maple tree are not yet consistent. Their placement early in dup_mmap() only appears to have been meaningful for early error checking, and since functionally it'd require a very small allocation to fail (in practice 'too small to fail') that'd only occur in the most dire circumstances, meaning the fork would fail or be OOM'd in any case. Since both khugepaged and KSM tracking are there to provide optimisations to memory performance rather than critical functionality, it doesn't really matter all that much if, under such dire memory pressure, we fail to register an mm with these. As a result, we follow the example of commit d2081b2bf819 ("mm: khugepaged: make khugepaged_enter() void function") and make ksm_fork() a void function also. We only expose the mm to these functions once we are done with them and only if no error occurred in the fork operation.
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
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached through ordinary local syscalls — `madvise(MADV_HUGEPAGE)`/`MADV_MERGEABLE` to register the mm with khugepaged/KSM, then `fork()`/`clone()` forced down an error path in `dup_mmap()`. No network or remote input is involved. AC:L - The attacker controls both sides of the race: they choose when the child mm is added to the khugepaged/KSM lists, they deterministically force the `dup_mmap()` error (e.g. SIGKILL landing in the VMA loop via `fatal_signal_pending(current)`, or ENOMEM under a self-imposed memcg limit), and KSM's blocking `mmap_read_lock(mm)` means ksmd is handed the lock the moment `dup_mmap()` unlocks. The attempt can be repeated indefinitely at no cost. PR:L - Only an unprivileged local user account is needed — `fork()`, `madvise()` and `prctl(PR_SET_MEMORY_MERGE)` require no capabilities, and no namespace tricks are necessary. UI:N - The attacker's own process performs the fork and the error injection; khugepaged/ksmd are always-running kernel threads. No victim action is required. S:U - The corruption is confined to kernel memory management structures within the same security authority; there is no VM, IOMMU or sandbox boundary crossed. C:H - khugepaged/KSM walk the child's maple tree containing the parent's VMAs and, once the parent unmaps them, freed `vm_area_struct`s — a use-after-free read of attacker-groomable heap memory, plus cross-address-space page/rmap confusion that can expose another address space's page contents. I:H - The scanners act on stale/foreign VMAs while installing PMDs and rewriting PTEs and rmap in the wrong mm (`collapse_file()`, `collapse_pte_mapped_thp()`, KSM's `try_to_merge_one_page()` with `vma->vm_mm != mm`), and dereference `vm_ops`/`anon_vma`/`vm_file` from freed objects — a UAF/type-confusion primitive usable for arbitrary write and control-flow hijack. A:H - At minimum the walkers dereference `XA_ZERO_ENTRY` (0x406) as a `struct vm_area_struct *`, producing a NULL-page kernel oops in khugepaged/ksmd; the use-after-free on parent VMAs likewise causes kernel crashes and, with `panic_on_oops`, a full panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d2406291483775ecddaee929231a39c70c08fda2 to < 3b85aa0da8cd01173b9afd1f70080fbb9576c4b0 (affected · git)d2406291483775ecddaee929231a39c70c08fda2 to < 985da552a98e27096444508ce5d853244019111f (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.8 (affected)0 to < 6.8 (unaffected · semver)6.11.7 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
fork: only invoke khugepaged, ksm hooks if no error
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6ba9b5ccb22c4f07d3458b20b151721fedf731d7b60ae41fc274fc98adb75a81
- Ingested
- 23 Sep 2026, 08:29:52 UTC
- Source record
- Official CVE record