What SLE 16 negotiates when nobody configures anything
TL;DR: Every post-quantum test we had sets the algorithm explicitly, so none of them would notice a changed default. For my Hack Week 26 project I wrote an openQA test that runs handshakes between the system's crypto stacks with untouched configurations, then turns on FIPS mode in the same VM and runs them again. With FIPS off, TLS on SLE 16.1 negotiates hybrid ML-KEM almost everywhere. With FIPS on, SSH and stunnel lose post-quantum key exchange. The test is in review as #27526. The runs produced two new bugs and new evidence on two existing ones.
What was missing
SLE 16 ships ML-KEM in OpenSSL 3.5, GnuTLS 3.8.10, NSS 3.125 and OpenSSH 10. We test all of them, and every test forces the group or the key exchange. That proves the algorithm works. It does not prove anyone uses it. The default comes from the library, the system crypto-policy or a list hard-coded in the application, and a change in any of them is silent. Nothing compared the system with FIPS off and on either.
What the test does
The job records a crypto fingerprint: a JSON file with what OpenSSL, OpenSSH,
GnuTLS, the kernel's /proc/crypto, the crypto-policy back-ends, stunnel and
Postfix offer and use by default. Then it runs 17 client/server pairs on
127.0.0.1 (OpenSSL, GnuTLS, NSS, stunnel, Go, curl, python, OpenSSH, libssh)
and records the group each pair negotiates. It enables FIPS kernel mode,
reboots, does both again and diffs the two fingerprints.
The FIPS diff is over 500 lines on SLE 16, almost all expected: algorithms that are not FIPS approved disappear. Each expected change has an entry with a reason in an approvals file, and any other change fails the job:
{"scope": "fips_off-vs-fips_kernel", "path": "kernel_fips_disabled", "op": "+",
"value": ["ecdh-nist-p192", "ecdsa-nist-p192"],
"reason": "P-192 is not FIPS approved"}
37 entries cover SLE 16.0 and 16.1 on x86_64, aarch64 and s390x.
What it found
| Client -> server | 16.0 | 16.1 | FIPS on (both) |
|---|---|---|---|
| OpenSSL, curl, python, NSS, GnuTLS | X25519MLKEM768 | X25519MLKEM768 | SecP256r1MLKEM768 |
| Go | X25519MLKEM768 | X25519MLKEM768 | X25519MLKEM768 |
| stunnel | X25519 | X25519MLKEM768 | P-256 |
GnuTLS with NORMAL | P-256 | P-256 | P-256 |
| OpenSSH | sntrup761x25519 | sntrup761x25519 | ecdh-nistp256 |
| curl sftp (libssh) | curve25519 | curve25519 | ecdh-nistp256 |
With FIPS off, the stacks that read the system policy agree on X25519MLKEM768.
stunnel 5.74 on 16.0 has its own classical list; 5.76 on 16.1 adds the hybrid.
GnuTLS with its built-in NORMAL priority stays on P-256. libssh 0.11.5 has no
ML-KEM. OpenSSH picks sntrup761x25519 because the crypto-policy puts it before
mlkem768x25519; with ssh -F none it picks ML-KEM.
With FIPS on, TLS moves to SecP256r1MLKEM768 (P-256 plus ML-KEM) and stays
post-quantum. OpenSSH falls back to ecdh-sha2-nistp256: its FIPS mode has no
ML-KEM key exchange. stunnel hard-codes P-256, P-384 and P-521 when
fips = yes. Go keeps X25519MLKEM768: it has its own FIPS switch. The kernel
diff also showed ecb(cipher_null) disabled with fips=1, a known bug that
breaks IPsec in FIPS mode, now seen on 16.1 too.
The first bug draft was wrong
On s390x, the curl sftp probe failed on 16.1 with "Could not set remote port".
curl 8.20 to 8.23 passes the port to libssh as a 16-bit value, and libssh reads
it as an int. On a big-endian CPU that reads the wrong bytes: ports from
32768 up are rejected, and below that the host key is checked against the wrong
port in known_hosts. The fix is in curl 8.24.0
(curl#24112), and
Fedora hit the same bug.
The AI agent's first bug draft claimed that every sftp URL fails on s390x. Its
reproducer used port 22 with -k, which would have passed. s390x jobs see
infrastructure failures often enough that I asked for proof first. The failure
then reproduced under qemu-s390x in a container, the curl and libssh sources
matched the shipped binaries, and the openQA history showed no infrastructure
pattern. Those checks found the 32767/32768 boundary, and the bug went out with
a reproducer that works.
What the review changed
When a module fails, openQA can revert the VM to the last good snapshot, which would have deleted the FIPS-off fingerprint the second run diffs against. The module now keeps it.
The approvals got stricter. /proc/crypto drivers depend on the CPU, so they
stay approved as a block, but an algorithm may only disappear if the kernel
logs it as disabled due to FIPS. Fixes are reported too: an approval whose bug
no longer matches anything, or a known gap that now negotiates a post-quantum
group. Neither fails the job, so the update with the fix stays green.
Result
The verification runs passed on SLE 16.0 and 16.1 on all three architectures. The job turns red only when something new changes. None of the four bugs is public.
The FIPS-off half also runs on Tumbleweed: the verification run on openqa.opensuse.org passed, and the Tumbleweed job group gets it after the merge. Last year a crypto-policy change on Tumbleweed disabled the X25519 key exchanges in SSH. The test would catch that kind of change on the first snapshot.
Not covered yet: Java and strongSwan. For Postfix the test records the configured group list, not a live handshake.
How this was made
AI help: an AI agent compared the fingerprints and matrices of all runs, sorted
the FIPS diffs into the approvals baseline, ran the qemu-s390x checks behind the
curl bug, and replayed the stricter checks against the stored runs before the
new verification runs.
Code: reviewed line by line by me, like any other patch, and checked in
verification runs.