CVE-2026-54904concurrent-ruby: `AtomicReference#update` livelocks when the stored value is `Float::NAN`
concurrent-ruby is a modern concurrency tools for Ruby. Prior to 1.3.7, Concurrent::AtomicReference#update can enter a permanent busy retry loop when the current value is Float::NAN. The issue is caused by the interaction between AtomicReference#update, which retries until compare_and_set(old_value, new_value) succeeds; Numeric compare_and_set, which checks old == old_value before attempting the underlying atomic swap.; and Ruby NaN semantics, where Float::NAN == Float::NAN is always false. As a result, once an AtomicReference contains Float::NAN, calling #update repeatedly evaluates the caller's block and never returns. In services that store externally derived numeric values in an AtomicReference, this can cause CPU exhaustion or permanent request/job hangs. This vulnerability is fixed in 1.3.7.
What to do
Fixed builds are available from Debian, RubyGems: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ruby-concurrent | Fix pending | UBUNTU-CVE-2026-54904 | |
| Ubuntu 26.04 | ruby-concurrent | Under investigation | UBUNTU-CVE-2026-54904 | |
| Ubuntu 25.10 | ruby-concurrent | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-54904 | |
| Ubuntu 24.04 | ruby-concurrent | Under investigation | UBUNTU-CVE-2026-54904 | |
| Ubuntu 22.04 | ruby-concurrent | Fix pending | UBUNTU-CVE-2026-54904 | |
| Ubuntu 20.04 | ruby-concurrent | Fix pending | UBUNTU-CVE-2026-54904 | |
| Ubuntu 18.04 | ruby-concurrent | Fix pending | UBUNTU-CVE-2026-54904 | |
| Ubuntu 16.04 | ruby-concurrent | Fix pending | UBUNTU-CVE-2026-54904 | |
| Debian 14 | ruby-concurrent | Fixed | 1.3.7-1 | DEBIAN-CVE-2026-54904 |
| Debian 13 | ruby-concurrent | Fix pending | DEBIAN-CVE-2026-54904 | |
| Debian 12 | ruby-concurrent | Fix pending | DEBIAN-CVE-2026-54904 | |
| RubyGems library | concurrent-ruby | Fixed | 1.3.7 | GHSA-h8w8-99g7-qmvj |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ruby-concurrency concurrent-ruby: affected: < 1.3.7
References
- https://github.com/ruby-concurrency/concurrent-ruby/security/advisories/GHSA-h8w8-99g7-qmvj
- https://github.com/ruby-concurrency/concurrent-ruby/commit/6e37e0644b83b182971dc540d2e4bee38df61386
- https://github.com/ruby-concurrency/concurrent-ruby/releases/tag/v1.3.7
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/concurrent-ruby/CVE-2026-54904.yml
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.