[SRU] gsd-smartcard: segfault on startup
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| GNOME Settings Daemon |
Fix Released
|
Unknown
|
|||
| gnome-settings-daemon (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
| Jammy |
Won't Fix
|
High
|
Nathan Teodosio | ||
| Noble |
Fix Committed
|
High
|
Nathan Teodosio | ||
| Oracular |
Won't Fix
|
Undecided
|
Unassigned | ||
| Plucky |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Impact
------
A smartcard reader attached to the computer on startup, containing a non-standard smartcard (in this case an NXP AV3 SAM card) causes gsd-smartcard to segfault and restart 200 times after login.
Test plan
---------
0.1. apt install pcscd.
0.2. Log out.
Reproduce the issue:
1.1. Insert a non-standard smartcard into your computer (if it has a slot for it) or into a smart card reader attached to your computer.
1.2. Log in.
* Verify that a couple of automatic error reporter windows appear and the crash is of gsd_smartcard.
Verify the fix:
2.1. Enable proposed: https:/
2.2. apt install gnome-settings-
2.3. Log out.
2.4. Insert a non-standard smartcard into your computer (if it has a slot for it) or into a smart card reader attached to your computer.
2.5. Log in.
* Verify that no more error reporter windows appear for gsd_smartcard crashes.
Where things could go wrong
-------
As the code changes are restricted to the smart card module, which is packed in the gsd-smartcard binary, it is very unlikely to accept other parts of the daemon. So possible regressions are mainly during authentication phase in Gnome using a smart card.
More information
----------------
System Info:
This is Ubuntu 22.04.2 LTS at Kernel 5.19.0-38-generic
The Smart Card reader is an Identiv uTrust 4711 F with both SAM and Contactless slots
The system is an HP ZBook Firefly 14 G7
Detailed issue:
When the smartcard reader is plugged into the system, and an NXP SAM AV3 card is inserted into the physical smartcard slot, upon login several (5) Ubuntu Error report windows will open asking to report a crash. The reader lights will flicker for about 5 minutes until they finally stop. No other issues are seen with the system during this time.
Upon looking at /var/log/syslog, the errors listed in the attachment are visible as it appears gsd-smartcard is in a loop of restarting and crashing following an error.
/var/crash contains two files from the crash loop, _usr_libexec_
Eventually the crashes seem to stop and the light stops flickering, but a logout and log back in will restart the issue again, as will rebooting the machine. Re-plugging the device while logged in does not seem to cause it to start the crash loop again.
To complete the standard questions:
1. I logged into my computer and saw error messages
2. I expected the smart card to be ignored if there was a card inserted that was unexpected or incompatible with the gnome settings daemon
3. I encountered several crash reporter messages upon logging in, which seem to have come from the gsd-smartcard program
| Changed in gnome-settings-daemon (Ubuntu): | |
| status: | Incomplete → New |
| Changed in gnome-settings-daemon: | |
| status: | Unknown → New |
| Changed in gnome-settings-daemon: | |
| status: | New → Fix Released |
| Changed in gnome-settings-daemon (Ubuntu Plucky): | |
| status: | New → Fix Released |
| Changed in gnome-settings-daemon (Ubuntu Oracular): | |
| status: | New → Won't Fix |
| Changed in gnome-settings-daemon (Ubuntu Noble): | |
| assignee: | nobody → Nathan Teodosio (nteodosio) |
| Changed in gnome-settings-daemon (Ubuntu Jammy): | |
| assignee: | nobody → Nathan Teodosio (nteodosio) |
| importance: | Undecided → High |
| Changed in gnome-settings-daemon (Ubuntu Noble): | |
| importance: | Undecided → High |
| summary: |
- gsd-smartcard: segfault on startup + [SRU] gsd-smartcard: segfault on startup |
| description: | updated |
| Changed in gnome-settings-daemon (Ubuntu Noble): | |
| status: | New → Triaged |

Have attempted to use apport to attach the crash dump but have so far been unsuccessful. It doesn't seem to upload anything.