sorry for the llm noise. I am typing this one by hand. After upgrading to Ubuntu 26.04 from 24.04, I was not able to connect to my corporate wifi that authenticates via tls certificates (EAP-TLS with a TPM-backed key through a PKCS#11 URI).
The failures seemed to stem from tpm: 1) wpa_supplicant log: Esys_StartAuthSession ... Could not create rsa key (0x00070001) 2) openssl req -engine pkcs11 fails with EVP_PKEY_fromdata_init ... Host memory error . the 2nd error and library stack (tpm2-pkcs11 1.9.1 with OpenSSL 3.5.x) matched this bug. I asked the agent to apply this patch manually to my machine to see if the fix worked and it worked in one test on my machine. here is what the agent did: 1. loaded the patched tpm2-pkcs11 (the two lp2167891 patches) in place of the stock module. The same openssl req that failed beforesucceeded. 2. made wpa_supplicant use the patched module -> the EAP-TLS connection succeeded. This was on a real hardware TPM. I didn't test it with swtpm (but this triggered a security alert in my managed machine and the security team had me revert the custom patch as a policy violation. and wait for the official fix. So I am hoping this fix reaches resolute soon). here is the environment: - Ubuntu 26.04.1 - OpenSSL 3.5.5-1ubuntu3.7 - libtpm2-pkcs11-1 1.9.1-0.1ubuntu1 - libengine-pkcs11-openssl 0.4.18-1 - libtss2-esys 4.1.3-6 - wpasupplicant 2:2.11-0ubuntu5 - NetworkManager 1.54.3 - Hardware TPM 2.0 (tpm_tis) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2167891 Title: "Host memory error" when using tpm with wpa_supplicant To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tpm2-pkcs11/+bug/2167891/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
