CVE-2026-46066: ceph: fix num_ops off-by-one when crypto allocation fails

Published May 27, 2026
·
Updated

ceph: fix numops off-by-one when crypto allocation fails

Affected Software

3 affected components
Linux Linux kernel=6.18.16, =6.19.6, =7.0-rc1
Linux Linux kernel>=6.6<6.18.30
Linux Linux kernel>=6.19<7.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In ceph_process_folio_batch(), when move_dirty_folio_in_page_array() fails after the folio has already been added to the batch, decrement ceph_wbc->num_ops back to the correct value before continuing, preventing the BUG_ON panic.

Event History

May 27, 2026
CVE Published
via MITRE·12:57 PM
Data Sourced
via MITRE·12:57 PM
Description
Data Sourced
via NVD·02:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 28, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems are exposed to this issue?

The affected scenario requires CephFS files protected with fscrypt. Exploitation is local and requires low privileges according to the CVSS vector, along with the ability to write the relevant files.

2

What conditions trigger the kernel panic?

A dirty folio that is not first in a batch must fail crypto bounce-buffer allocation and be discontiguous from the preceding folio in the batch. The issue can be reproduced by writing an fscrypt-enabled CephFS file in a repeating 4 KiB written, 4 KiB skipped pattern while gradually increasing memory pressure.

3

What is the observable impact?

The system can panic in ceph_submit_write() when its expected write-operation count does not match the number of submitted operations. The reported assertion is BUG_ON(ceph_wbc->op_idx + 1 != req->r_num_ops).

4

What can be done before a fix is applied?

Avoid the stated trigger conditions where possible: writes to fscrypt-enabled CephFS files using alternating sparse 4 KiB write/skip patterns, particularly under increasing memory pressure. This reduces exposure to the documented reproduction path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203