https://bugs.kde.org/show_bug.cgi?id=528042

Harald Sitter <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kscreenlocker/-/commit/a
                   |                            |352e263f201ed6dd5ac76cab85b
                   |                            |4b052de227c4
             Status|ASSIGNED                    |RESOLVED

--- Comment #3 from Harald Sitter <[email protected]> ---
Git commit a352e263f201ed6dd5ac76cab85b4b052de227c4 by Harald Sitter, on behalf
of Rishon Jonathan R.
Committed on 18/11/2026 at 15:58.
Pushed by sitter into branch 'master'.

Greeter: don't select a remembered authenticator that is disabled

The greeter remembers which authenticator was last used and tries to select it
again the next time it starts. However, if that authenticator has since been
disabled (for example, Face=false after a face unlock), it won't exist in
`PAMAuthenticatorModel`. This leaves `m_hash.value()` with a null descriptor,
which `isFunctional()` then dereferences.

As a result, the greeter crashes on startup. After three consecutive restarts,
KWin eventually falls back to the emergency screen.

Fall back to the default authenticator if the remembered one is disabled or
unrecognised. Also make sure `markDefunct()` and `isFunctional()` safely handle
authenticators with no descriptor.

M  +9    -0    autotests/CMakeLists.txt
A  +70   -0    autotests/authenticatorstest.cpp     [License: GPL(v2.0+)]
M  +10   -2    greeter/pamauthenticatormodel.cpp
M  +1    -0    greeter/pamauthenticatormodel.h
M  +7    -2    greeter/pamauthenticators.cpp

https://invent.kde.org/plasma/kscreenlocker/-/commit/a352e263f201ed6dd5ac76cab85b4b052de227c4

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to