← Lab /Security & privacy

Opal2 self-encrypting drives contain firmware security flaws and Linux incompatibilities

Opal2 drives have multiple firmware security issues and incompatibilities with Linux disk encryption tools

Security & privacy arXiv 13 Jul 2026 Measurement Real-world evidence Threat model

Published as “Linux disk encryption and self-encrypting drives -- A case study on Opal2 drives security”

Why it matters

Linux users can now combine hardware Opal2 encryption with LUKS2, but must verify drive firmware compatibility to avoid hidden security flaws.

Summary

The study found that many Opal2 self-encrypting drives have firmware flaws - only 14 of 38 tested drives can be used securely with LUKS2 despite 24 advertising SUM support - and issues such as non-random RNG output, sector-size mismatches, and predictable PSIDs. They integrated Opal2 support into LUKS2 and released open-source tooling, but the evidence shows substantial incompatibilities and security gaps across vendors.

What they found 5

  1. Only 14 of 38 drives are usable with LUKS2 SUM mode due to firmware incompatibilities

    “From 38 drives in total, 24 announce SUM support, but only 14 are usable in practice for LUKS2 due to firmware incompatibilities.”

  2. Three drives are completely unusable because of firmware issues

    “Of the 38 drives announcing Opal2 support, 3 are unusable due to firmware issues.”

  3. Several drives fail the randomness test, producing non-uniform outputs

    “Test results HYN-1, LEN-1, LEN-2, SAM-1, SAM-2, SAM-3 and WDC-1 fail the randomness tests, producing statistically non-uniform outputs.”

  4. Sector-size change does not propagate correctly in MIC-4, causing block-size mismatch

    “MIC-4 supports sectors of sizes both 512 and 4096 bytes. However, a sector size change did not properly propagate to the Opal2 layer, causing a mismatch between the physical and the Opal2 logical block size, even after a PSID reset.”

  5. WDC-1 PSIDs are sequential and can be guessed across a production batch

    “WDC-1 had PSIDs with a common prefix and suffix generated sequentially, as verified by examining multiple SEDs from the same production batch (we had seen multiple drives). Recovering the PSID of another drive in the batch is therefore trivially achievable by trying candidate values incrementally.”

Caveats 6

  • Random number generator outputs are biased on many drives, undermining any security that relies on the drive’s Random method.
  • Sector-size mismatch can lead to data loss or partial encryption, contradicting the claim of correct encryption behavior.
  • Predictable PSIDs allow an attacker with a photo of the label to reset the drive, weakening the assumed confidentiality of the reset mechanism.
  • SUM feature implementations deviate from the TCG spec, making the advertised exclusive-user mode insecure.
  • Our security evaluation focuses on non-adversarial operational use of SEDs, deliberately setting aside hardware-level or supply-chain attacks.
  • We treat the SEDs as black boxes with documented Opal2 functionality, with no intention of probing for vendor-specific extensions.

What’s new here 4

  • Black-box security analysis of 38 commercial Opal2 drives
  • Open-source Opal toolset and Opal Test Suite for automated Opal2 testing
  • Integration of Opal2 (including SUM mode) into Linux LUKS2 and cryptsetup
  • Identification of firmware-level flaws such as RNG bias, sector-size mismatches, and PSID predictability

Threat model stated by the source

Adversaryattacker with low-level protocol access to the drive
Capabilitycommunicate with the drive using the same Opal2 commands as a legitimate user
Assumesthe drive never returns to service after analysis by an attacker; data is protected only when the system is powered off