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-2022-48892

published high CVSS 3.1 · 7.8

sched/core: Fix use-after-free bug in dup_user_cpus_ptr()

Published
21 Aug 2024, 06:10:24 UTC
Updated
05 Aug 2026, 08:52:49 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux07ec77a1d4e82526e1588979fff2f024f8e96df2 to < b22faa21b6230d5eccd233e1b7e0026a5002b287 · 07ec77a1d4e82526e1588979fff2f024f8e96df2 to < 7b5cc7fd1789ea5dbb942c9f8207b076d365badc · 07ec77a1d4e82526e1588979fff2f024f8e96df2 to < 87ca4f9efbd7cc649ff43b87970888f2812945b8 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.89 through 5.15.* (unaffected · semver) · 6.1.7 through 6.1.* (unaffected · semver) · 6.2 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 AL2 Release evaluationALAS2KERNEL-5.15-2023-013 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-013
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-013
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.15-2023-013
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-013

Description

In the Linux kernel, the following vulnerability has been resolved: sched/core: Fix use-after-free bug in dup_user_cpus_ptr() Since commit 07ec77a1d4e8 ("sched: Allow task CPU affinity to be restricted on asymmetric systems"), the setting and clearing of user_cpus_ptr are done under pi_lock for arm64 architecture. However, dup_user_cpus_ptr() accesses user_cpus_ptr without any lock protection. Since sched_setaffinity() can be invoked from another process, the process being modified may be undergoing fork() at the same time. When racing with the clearing of user_cpus_ptr in __set_cpus_allowed_ptr_locked(), it can lead to user-after-free and possibly double-free in arm64 kernel. Commit 8f9ea86fdf99 ("sched: Always preserve the user requested cpumask") fixes this problem as user_cpus_ptr, once set, will never be cleared in a task's lifetime. However, this bug was re-introduced in commit 851a723e45d1 ("sched: Always clear user_cpus_ptr in do_set_cpus_allowed()") which allows the clearing of user_cpus_ptr in do_set_cpus_allowed(). This time, it will affect all arches. Fix this bug by always clearing the user_cpus_ptr of the newly cloned/forked task before the copying process starts and check the user_cpus_ptr state of the source task under pi_lock. Note to stable, this patch won't be applicable to stable releases. Just copy the new dup_user_cpus_ptr() function over.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

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 - Reachable only via local syscalls (fork/clone racing with sched_setaffinity); there is no network or adjacent-packet path into dup_user_cpus_ptr(). AC:L - The attacker controls both sides of the race (one thread/process forking while another same-UID thread repeatedly calls sched_setaffinity on the forking task), so success does not depend on conditions outside attacker control. PR:L - An unprivileged user can trigger both fork and sched_setaffinity on their own tasks via check_same_owner without CAP_SYS_NICE; user_cpus_ptr is also established by unprivileged execve on asymmetric arm64. UI:N - Exploitation requires no victim action; the attacker triggers fork and affinity changes entirely themselves. S:U - This is a standard kernel heap UAF/double-free enabling privilege escalation within the same kernel security authority, not a VM/IOMMU/sandbox boundary cross. C:H - Use-after-free of the kmalloc'd cpumask lets an attacker reclaim the object and obtain arbitrary kernel read primitives from the corrupted heap. I:H - The same UAF/double-free is exploitable for heap spraying and arbitrary write/control-flow hijack in the kernel, enabling integrity compromise and code execution. A:H - The race can NULL-dereference or free still-referenced memory, causing kernel oops/panic, and UAF crashes remain likely even when not fully exploited.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 07ec77a1d4e82526e1588979fff2f024f8e96df2 to < b22faa21b6230d5eccd233e1b7e0026a5002b287 (affected · git)07ec77a1d4e82526e1588979fff2f024f8e96df2 to < 7b5cc7fd1789ea5dbb942c9f8207b076d365badc (affected · git)07ec77a1d4e82526e1588979fff2f024f8e96df2 to < 87ca4f9efbd7cc649ff43b87970888f2812945b8 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.89 through 5.15.* (unaffected · semver)6.1.7 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

2

Linux · cna

sched/core: Fix use-after-free bug in dup_user_cpus_ptr()

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
24c77130e22326c20cc353100a3e29e01f817ccd05f3a8379fd5cc55294a2ecb
Ingested
23 Sep 2026, 08:04:03 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