Bug 2191749
| Summary: | [abrt] opensc: memcpy(): pkcs11-tool killed by SIGABRT | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | M. Merklinger <m.merklinger> | ||||||||
| Component: | opensc | Assignee: | Jakub Jelen <jjelen> | ||||||||
| Status: | POST --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 38 | CC: | crypto-team, jjelen, tm | ||||||||
| Target Milestone: | --- | Keywords: | Triaged | ||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Unspecified | ||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/a8613e9c4a8d102069c3a5f56330f480b0c319b | ||||||||||
| Whiteboard: | abrt_hash:11a064cd76500d93066e43f5a441a31a6bf8f209;VARIANT_ID=workstation; | ||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | Type: | --- | |||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
M. Merklinger
2023-04-29 00:36:38 UTC
Created attachment 1960941 [details]
File: proc_pid_status
Created attachment 1960942 [details]
File: maps
Created attachment 1960943 [details]
File: limits
I executed the command `pkcs11-tool -l --login-type so --so-pin 12345678 --keypairgen --key-type rsa:2048` to generate a new key on the smartcard. The connected smartcard was a Nitrokey Pro. reporter: libreport-2.17.9 type: CCpp reason: pkcs11-tool killed by SIGABRT journald_cursor: s=7e20d1102e0a4c84aee515be2aa44067;i=bda73;b=4c0e4e5a3abf4f59a1f38d6b4f496033;m=5517bee92;t=5fa6e37806baf;x=3d7ab7b083867fba executable: /usr/bin/pkcs11-tool cmdline: pkcs11-tool -l --login-type so --so-pin 12345678 --keypairgen --key-type rsa:2048 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/vte-spawn-bd8e100e-7009-41db-89f7-fd2f522a6add.scope rootdir: / uid: 1000 kernel: 6.2.12-300.fc38.x86_64 package: opensc-0.23.0-3.fc38 runlevel: N 5 backtrace_rating: 4 crash_function: memcpy comment: I executed the command `pkcs11-tool -l --login-type so --so-pin 12345678 --keypairgen --key-type rsa:2048` to generate a new key on the smartcard. The connected smartcard was a Nitrokey Pro. Thank you for the bug report and reproducer! If I see right, the same code is in the upstream OpenSC so it will likely be an issue in there too. Can you open a new issue in https://github.com/OpenSC/OpenSC/ I unfortunately do not have Nitrokey Pro to check what is going on there, but I assume some sanity check for the results of the conversion in ushort2bebytes() is needed. This was reported upstream as https://github.com/OpenSC/OpenSC/issues/2775 and fixed with the following commit: https://github.com/OpenSC/OpenSC/commit/e8fba322a2f4d06ec5c74fe80f9e2b0e9fdefec6 Do you need a fix in some particular version of Fedora or is it ok to wait for the next upstream release (which should happen hopefully in autumn)? The next upstream release is enough. Thank you! |