Bug 1890464

Summary: p11-kit freeze for invalid module configuration
Product: Red Hat Enterprise Linux 8 Reporter: Karel Srot <ksrot>
Component: p11-kitAssignee: Daiki Ueno <dueno>
Status: CLOSED ERRATA QA Contact: Alexander Sosedkin <asosedki>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: asosedki, tuju
Target Milestone: rcKeywords: Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: p11-kit-0.23.21-2.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 14:52:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Srot 2020-10-22 10:06:12 UTC
Description of problem:

I have accidentally provided wrong module file. After that p11-kit got stuck. And not just p11-kit itself but also other utilities using it.

Version-Release number of selected component (if applicable):
p11-kit-0.23.14-5.el8_0.x86_64

How reproducible:
always

Steps to Reproduce:
# echo 'module:' > /usr/share/p11-kit/modules/test.module
# p11-kit list-modules

Actual results:
p11-kit command got stuck. And not just p11-kit cmd but also subsequent calls like modutil got stuck since they interact with p11-kit (through proxy?)
no error reported in logs

Expected results:
error on stderr, error logged in /var/log/messages
non-critical module could be probably ignored/skipped

Comment 1 Daiki Ueno 2020-10-22 12:14:40 UTC
This is really well spotted; the bug has been there since 2013. Thank you!

Comment 8 errata-xmlrpc 2021-05-18 14:52:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: p11-kit security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1609