Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-26763 Overview
CVE-2024-26763 affects the Linux kernel's dm-crypt device-mapper target when used with authenticated encryption. The vulnerability stems from dm-crypt encrypting data in place within user-supplied buffers. A local user issuing O_DIRECT writes can modify the data while encryption is in progress, producing an invalid authentication tag and corrupting the backing device. The fix copies plaintext into a clone bio before encryption, preventing concurrent user modifications from affecting the ciphertext or tag computation. The flaw is tracked under CWE-787 (Out-of-bounds Write).
Critical Impact
Local users can corrupt authenticated-encrypted dm-crypt volumes by racing O_DIRECT writes against the encryption path, producing invalid tags and persistent data integrity loss.
Affected Products
- Linux Kernel (multiple stable branches prior to the referenced fix commits)
- Linux Kernel 6.8-rc1 through 6.8-rc5
- Debian Linux 10.0 (addressed via Debian LTS updates)
Discovery Timeline
- 2024-04-03 - CVE-2024-26763 published to the National Vulnerability Database (NVD)
- 2024-06-17 - Debian LTS advisory published (Debian LTS Announcement June 17)
- 2024-06-20 - Second Debian LTS advisory published (Debian LTS Announcement June 20)
- 2026-08-04 - Last updated in the NVD database
Technical Details for CVE-2024-26763
Vulnerability Analysis
The dm-crypt device-mapper target provides transparent block-level encryption. When configured with an Authenticated Encryption with Associated Data (AEAD) cipher such as AES-GCM, dm-crypt computes an authentication tag over the plaintext during write operations. Before the fix, the encryption routine processed data directly in the user-supplied bio pages. A user process issuing O_DIRECT writes retains access to those pages while the kernel encrypts them.
If the user modifies the buffer mid-operation, the AEAD algorithm computes a tag over one plaintext while writing ciphertext derived from another. The resulting block cannot be authenticated on read, and the underlying volume reports integrity failures. This matches the behavior described in the referenced kernel mailing list discussion.
Root Cause
The root cause is a Time-of-Check to Time-of-Use (TOCTOU) condition between the user-controlled page cache and the kernel's AEAD encryption path. dm-crypt trusted that write buffers would remain stable during encryption, which is not guaranteed for O_DIRECT I/O.
Attack Vector
Exploitation requires local access and privileges sufficient to issue O_DIRECT writes against a dm-crypt volume configured with authenticated encryption. An attacker opens the block device or a file backed by such a volume with O_DIRECT, submits a write, and concurrently mutates the source buffer from another thread. The kernel produces ciphertext and an AEAD tag that do not match, corrupting the stored data without any crash or privilege escalation.
No verified public proof-of-concept code is available. The upstream patch and discussion thread document the data path affected.
Detection Methods for CVE-2024-26763
Indicators of Compromise
- Kernel log entries from dm-crypt or dm-integrity reporting authentication tag verification failures on read
- Filesystem errors or unexpected EIO return codes on volumes using AEAD-mode dm-crypt
- Repeated O_DIRECT write workloads from unprivileged processes targeting encrypted block devices
Detection Strategies
- Audit kernel version strings across Linux hosts and compare against the fixed commits listed in the kernel.org stable tree
- Monitor dmesg and journalctl -k output for dm-crypt or authenc tag mismatch messages
- Use configuration management tooling to inventory cryptsetup volumes configured with AEAD ciphers such as aes-gcm-random
Monitoring Recommendations
- Forward kernel logs to a centralized logging or SIEM platform and alert on integrity-failure patterns from dm-crypt
- Track process-level open() calls containing the O_DIRECT flag against known encrypted block devices using eBPF or auditd
- Baseline normal write patterns to encrypted volumes to make anomalous bursts of O_DIRECT activity visible
How to Mitigate CVE-2024-26763
Immediate Actions Required
- Update the Linux kernel to a version containing the upstream fix commits referenced in the vendor advisories
- On Debian systems, install the kernel updates distributed via the June 2024 Debian LTS announcements
- Restrict local shell access on hosts that mount dm-crypt AEAD volumes until patching completes
Patch Information
The fix modifies dm-crypt so that plaintext is copied into a clone bio before encryption. Review and apply the following upstream commits as backported to the appropriate stable branch: 0dccbb93538f, 1a4371db68a3, 3c652f6fa1e1, 43a202bd5529, 50c70240097c, 64ba01a36598, d9e3763a505e, and e08c2a8d27e9.
Workarounds
- Avoid using authenticated-encryption modes with dm-crypt on unpatched kernels; standard non-AEAD modes are not affected by this specific issue
- Prevent untrusted local users from issuing O_DIRECT writes against encrypted volumes through filesystem permissions and mount options
- Where feasible, disable direct I/O on affected mountpoints until the kernel is updated
# Verify running kernel and confirm patch level against distribution advisories
uname -r
# Debian / Ubuntu: apply pending kernel updates
sudo apt-get update && sudo apt-get install --only-upgrade linux-image-$(uname -r | sed 's/.*-//')
sudo reboot
# Identify dm-crypt volumes using AEAD (authenc) ciphers
sudo dmsetup table --target crypt | grep -Ei 'gcm|authenc|ccm'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

