Skip to content

Absence of explicit deletion from memory of intermediate values #2163

Open
@amossys-1

Description

@amossys-1

As of version 0.13.0 of liboqs, we found that there is no explicit deletion of intermediate sensitive data in memory for at least the following mechanisms:

  • KEM:
    • Classic McEliece
    • HQC
    • NTRU Prime
  • Signature:
    • CROSS
    • Falcon
    • ML-DSA
    • SPHINCS+

Furthermore, the liboqs implementation of the SHA-3 family does not contain a secure deletion of the internal state.
As a consequence, a copy of sensitive values might still be present in memory in the heap when liboqs is compiled to use this implementation of the SHA-3 family.
For example, the release of the internal state for SHAKE256 is:

static void SHA3_shake256_inc_ctx_release(OQS_SHA3_shake256_inc_ctx *state) {
	OQS_MEM_aligned_free(state->ctx);
}

And the function OQS_MEM_aligned_free() is a wrapper around a simple free().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions