Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-50563

UNSCOREDEPSS 18%

dm thin: Fix UAF in run_timer_softirq()

Mitigation

  • Upgrade Linux to 88430ebcbc0ec637b710b947738839848c20feff or later.

Who should check

  • Anyone running Linux >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ee059d06a5d3c15465959e0472993e80fbe4e81; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 550a4fac7ecfee5bac6a0dd772456ca62fb72f46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < e8b8e0d2bbf7d1172c4f435621418e29ee408d46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ae6aa649394e1e7f6dafb55ce0d578c0572a280; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 34fe9c2251f19786a6689149a6212c6c0de1d63b; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 34cd15d83b7206188d440b29b68084fcafde9395; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 94e231c9d6f2648d2f1f68e7f476e050ee0a6159; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < d9971fa4d8bde63d49c743c1b32d12fbbd3a30bd; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 88430ebcbc0ec637b710b947738839848c20feff
  • Anyone running Linux 3.2

Vulnerability facts

Affected
Linux >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ee059d06a5d3c15465959e0472993e80fbe4e81; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 550a4fac7ecfee5bac6a0dd772456ca62fb72f46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < e8b8e0d2bbf7d1172c4f435621418e29ee408d46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ae6aa649394e1e7f6dafb55ce0d578c0572a280; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 34fe9c2251f19786a6689149a6212c6c0de1d63b; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 34cd15d83b7206188d440b29b68084fcafde9395; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 94e231c9d6f2648d2f1f68e7f476e050ee0a6159; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < d9971fa4d8bde63d49c743c1b32d12fbbd3a30bd; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 88430ebcbc0ec637b710b947738839848c20feff; Linux 3.2
Fixed in
Linux 7ee059d06a5d3c15465959e0472993e80fbe4e81, Linux 550a4fac7ecfee5bac6a0dd772456ca62fb72f46, Linux 7ae6aa649394e1e7f6dafb55ce0d578c0572a280, Linux 34fe9c2251f19786a6689149a6212c6c0de1d63b, Linux 34cd15d83b7206188d440b29b68084fcafde9395, Linux 94e231c9d6f2648d2f1f68e7f476e050ee0a6159, Linux 88430ebcbc0ec637b710b947738839848c20feff
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
EPSS
0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: dm thin: Fix UAF in run_timer_softirq() When dm_resume() and dm_destroy() are concurrent, it will lead to UAF, as follows: BUG: KASAN: use-after-free in __run_timers+0x173/0x710 Write of size 8 at addr ffff88816d9490f0 by task swapper/0/0 <snip> Call Trace: <IRQ> dump_stack_lvl+0x73/0x9f print_report.cold+0x132/0xaa2 _raw_spin_lock_irqsave+0xcd/0x160 __run_timers+0x173/0x710 kasan_report+0xad/0x110 __run_timers+0x173/0x710 __asan_store8+0x9c/0x140 __run_timers+0x173/0x710 call_timer_fn+0x310/0x310 pvclock_clocksource_read+0xfa/0x250 kvm_clock_read+0x2c/0x70 kvm_clock_get_cycles+0xd/0x20 ktime_get+0x5c/0x110 lapic_next_event+0x38/0x50 clockevents_program_event+0xf1/0x1e0 run_timer_softirq+0x49/0x90 __do_softirq+0x16e/0x62c __irq_exit_rcu+0x1fa/0x270 irq_exit_rcu+0x12/0x20 sysvec_apic_timer_interrupt+0x8e/0xc0 One of the concurrency UAF can be shown as below: use free do_resume | __find_device_hash_cell | dm_get | atomic_inc(&md->holders) | | dm_destroy | __dm_destroy | if (!dm_suspended_md(md)) | atomic_read(&md->holders) | msleep(1) dm_resume | __dm_resume | dm_table_resume_targets | pool_resume | do_waker #add delay work | dm_put | atomic_dec(&md->holders) | | dm_table_destroy | pool_dtr | __pool_dec | __pool_destroy | destroy_workqueue | kfree(pool) # free pool time out __do_softirq run_timer_softirq # pool has already been freed This can be easily reproduced using: 1. create thin-pool 2. dmsetup suspend pool 3. dmsetup resume pool 4. dmsetup remove_all # Concurrent with 3 The root cause of this UAF bug is that dm_resume() adds timer after dm_destroy() skips cancelling the timer because of suspend status. After timeout, it will call run_timer_softirq(), however pool has already been freed. The concurrency UAF bug will happen. Therefore, cancelling timer again in __pool_destroy().

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ee059d06a5d3c15465959e0472993e80fbe4e81; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 550a4fac7ecfee5bac6a0dd772456ca62fb72f46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < e8b8e0d2bbf7d1172c4f435621418e29ee408d46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ae6aa649394e1e7f6dafb55ce0d578c0572a280; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 34fe9c2251f19786a6689149a6212c6c0de1d63b; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 34cd15d83b7206188d440b29b68084fcafde9395; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 94e231c9d6f2648d2f1f68e7f476e050ee0a6159; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < d9971fa4d8bde63d49c743c1b32d12fbbd3a30bd; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 88430ebcbc0ec637b710b947738839848c20feff—cvelist
Linux3.2—cvelist

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-50563. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50563.md
Affected: Linux >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ee059d06a5d3c15465959e0472993e80fbe4e81; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 550a4fac7ecfee5bac6a0dd772456ca62fb72f46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < e8b8e0d2bbf7d1172c4f435621418e29ee408d46; >= 991d9fa02da0dd1f843dc01…
Fixed in: Linux 7ee059d06a5d3c15465959e0472993e80fbe4e81, Linux 550a4fac7ecfee5bac6a0dd772456ca62fb72f46, Linux 7ae6aa649394e1e7f6dafb55ce0d578c0572a280, Linux 34fe9c2251f19786a6689149a6212c6c0de1d63b, Linux 34cd15d83b7206188d440b29b68084fcafde9395, Linux 94e231c9d6f2648d2f1f68e7f476e050ee0a6159, Linux 88430…

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-50563 being exploited?

There is no confirmed exploitation: CVE-2022-50563 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-50563?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2022-50563?

Linux >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ee059d06a5d3c15465959e0472993e80fbe4e81; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 550a4fac7ecfee5bac6a0dd772456ca62fb72f46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < e8b8e0d2bbf7d1172c4f435621418e29ee408d46; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 7ae6aa649394e1e7f6dafb55ce0d578c0572a280; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 34fe9c2251f19786a6689149a6212c6c0de1d63b; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 34cd15d83b7206188d440b29b68084fcafde9395; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 94e231c9d6f2648d2f1f68e7f476e050ee0a6159; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < d9971fa4d8bde63d49c743c1b32d12fbbd3a30bd; >= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, < 88430ebcbc0ec637b710b947738839848c20feff; Linux 3.2.

Is there a fix for CVE-2022-50563?

Yes. Fixed in Linux 7ee059d06a5d3c15465959e0472993e80fbe4e81, Linux 550a4fac7ecfee5bac6a0dd772456ca62fb72f46, Linux 7ae6aa649394e1e7f6dafb55ce0d578c0572a280, Linux 34fe9c2251f19786a6689149a6212c6c0de1d63b, Linux 34cd15d83b7206188d440b29b68084fcafde9395, Linux 94e231c9d6f2648d2f1f68e7f476e050ee0a6159, Linux 88430ebcbc0ec637b710b947738839848c20feff. Upgrade Linux to 88430ebcbc0ec637b710b947738839848c20feff or later.

How do I check if I'm affected by CVE-2022-50563?

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.

Sponsors