| Title | RubyconcurrencyのConcurrent Rubyにおける無限ループに関する脆弱性 |
|---|---|
| Summary | concurrent-rubyはRubyのための最新の並行処理ツールです。バージョン1.3.7より前では、Concurrent::AtomicReference#updateは現在の値がFloat::NANの場合に永久にビジーリトライループに入る可能性がありました。この問題は、compare_and_set(old_value, new_value)が成功するまでリトライするAtomicReference#update、元の値と比較してから基礎となるアトミックスワップを試みるNumericのcompare_and_set、およびFloat::NAN == Float::NANが常にfalseとなるRubyのNaNのセマンティクスの相互作用によって引き起こされます。その結果、一度AtomicReferenceがFloat::NANを含むと、#updateを呼び出すたびに呼び出し元のブロックが繰り返し評価されて永遠に戻りません。外部から取得した数値をAtomicReferenceに保存するサービスでは、これによりCPUの枯渇やリクエストやジョブが永久にハングする可能性があります。この脆弱性はバージョン1.3.7で修正されました。 |
| Possible impacts | ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| Solution | ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | June 24, 2026, midnight |
| Registration Date | June 29, 2026, 11:23 a.m. |
| Last Update | June 29, 2026, 11:23 a.m. |
| CVSS3.0 : 重要 | |
| Score | 7.5 |
|---|---|
| Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Rubyconcurrency |
| Concurrent Ruby 1.3.7 未満 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年06月29日] 掲載 |
June 29, 2026, 11:23 a.m. |
| Summary | 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. |
|---|---|
| Publication Date | June 25, 2026, 2:17 a.m. |
| Registration Date | June 27, 2026, 4:22 a.m. |
| Last Update | June 27, 2026, 4:26 a.m. |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:rubyconcurrency:concurrent_ruby:*:*:*:*:*:ruby:*:* | 1.3.7 | ||||