CVE-2022-49783
x86/fpu: Drop fpregs lock before inheriting FPU permissions
Mitigation
- Upgrade Linux to 36b038791e1e2baea892e9276588815fd14894b4 or later.
Who should check
- Anyone running Linux >= 9e798e9aa14c45fb94e47b30bf6347b369ce9df7, < c6e8a7a1780af3da65e78a615f7d0874da6aabb0; >= 9e798e9aa14c45fb94e47b30bf6347b369ce9df7, < 36b038791e1e2baea892e9276588815fd14894b4
- Anyone running Linux 5.16
Vulnerability facts
- Affected
- Linux >= 9e798e9aa14c45fb94e47b30bf6347b369ce9df7, < c6e8a7a1780af3da65e78a615f7d0874da6aabb0; >= 9e798e9aa14c45fb94e47b30bf6347b369ce9df7, < 36b038791e1e2baea892e9276588815fd14894b4; Linux 5.16
- Fixed in
- Linux 36b038791e1e2baea892e9276588815fd14894b4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: x86/fpu: Drop fpregs lock before inheriting FPU permissions Mike Galbraith reported the following against an old fork of preempt-rt but the same issue also applies to the current preempt-rt tree. BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:46 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: systemd preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 Preemption disabled at: fpu_clone CPU: 6 PID: 1 Comm: systemd Tainted: G E (unreleased) Call Trace: <TASK> dump_stack_lvl ? fpu_clone __might_resched rt_spin_lock fpu_clone ? copy_thread ? copy_process ? shmem_alloc_inode ? kmem_cache_alloc ? kernel_clone ? __do_sys_clone ? do_syscall_64 ? __x64_sys_rt_sigprocmask ? syscall_exit_to_user_mode ? do_syscall_64 ? syscall_exit_to_user_mode ? do_syscall_64 ? syscall_exit_to_user_mode ? do_syscall_64 ? exc_page_fault ? entry_SYSCALL_64_after_hwframe </TASK> Mike says: The splat comes from fpu_inherit_perms() being called under fpregs_lock(), and us reaching the spin_lock_irq() therein due to fpu_state_size_dynamic() returning true despite static key __fpu_state_size_dynamic having never been enabled. Mike's assessment looks correct. fpregs_lock on a PREEMPT_RT kernel disables preemption so calling spin_lock_irq() in fpu_inherit_perms() is unsafe. This problem exists since commit 9e798e9aa14c ("x86/fpu: Prepare fpu_clone() for dynamically enabled features"). Even though the original bug report should not have enabled the paths at all, the bug still exists. fpregs_lock is necessary when editing the FPU registers or a task's FP state but it is not necessary for fpu_inherit_perms(). The only write of any FP state in fpu_inherit_perms() is for the new child which is not running yet and cannot context switch or be borrowed by a kernel thread yet. Hence, fpregs_lock is not protecting anything in the new child until clone() completes and can be dropped earlier. The siglock still needs to be acquired by fpu_inherit_perms() as the read of the parent's permissions has to be serialised. [ bp: Cleanup splat. ]
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49783. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49783.md Affected: Linux >= 9e798e9aa14c45fb94e47b30bf6347b369ce9df7, < c6e8a7a1780af3da65e78a615f7d0874da6aabb0; >= 9e798e9aa14c45fb94e47b30bf6347b369ce9df7, < 36b038791e1e2baea892e9276588815fd14894b4; Linux 5.16 Fixed in: Linux 36b038791e1e2baea892e9276588815fd14894b4 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2022-49783 being exploited?
There is no confirmed exploitation: CVE-2022-49783 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49783?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-49783?
Linux >= 9e798e9aa14c45fb94e47b30bf6347b369ce9df7, < c6e8a7a1780af3da65e78a615f7d0874da6aabb0; >= 9e798e9aa14c45fb94e47b30bf6347b369ce9df7, < 36b038791e1e2baea892e9276588815fd14894b4; Linux 5.16.
Is there a fix for CVE-2022-49783?
Yes. Fixed in Linux 36b038791e1e2baea892e9276588815fd14894b4. Upgrade Linux to 36b038791e1e2baea892e9276588815fd14894b4 or later.
How do I check if I'm affected by CVE-2022-49783?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.