Bug 1180065 - (CVE-2020-29362) VUL-0: CVE-2020-29362: p11-kit: out-of-bounds read in p11_rpc_buffer_get_byte_array function in rpc-message.c
(CVE-2020-29362)
VUL-0: CVE-2020-29362: p11-kit: out-of-bounds read in p11_rpc_buffer_get_byte...
Status: REOPENED
: 1201534 (view as bug list)
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P4 - Low : Normal
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/273410/
CVSSv3.1:SUSE:CVE-2020-29362:5.3:(AV:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-12-15 17:39 UTC by Wolfgang Frisch
Modified: 2022-09-06 14:19 UTC (History)
6 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
andreas.taschner: needinfo?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Frisch 2020-12-15 17:39:29 UTC
CVE-2020-29362

The p11_rpc_buffer_get_byte_array function can read up to four bytes past the end of a heap allocation due to an incorrect bounds check, caused by a confusion between two similarly-named variables.

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1903590
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-29362
Comment 1 Wolfgang Frisch 2020-12-15 17:53:12 UTC
CVE-2020-29362 appears to correspond to this upstream commit:
https://github.com/p11-glue/p11-kit/commit/69d751ca9df9ac101adfb1e5aa7e83e3358106ba

Tracking as follows:

SUSE:Carwos:1           Affected
SUSE:SLE-12:Update      Not affected [1]
SUSE:SLE-12-SP3:Update  Not affected [1]
SUSE:SLE-15:Update      Affected

[1] function not present
Comment 3 Ludwig Nussel 2021-05-17 11:49:01 UTC
Fixed in Factory by upgrade to 0.23.22
Comment 4 Gianluca Gabrielli 2021-07-28 12:57:01 UTC
Hi Ludwig,

SUSE:SLE-15:Update/p11-kit has not been addressed yet, could you please submit the fix?
Moreover, please do not close security issues from your side. Instead re-assign them back to the security team.
Comment 5 Ludwig Nussel 2021-07-28 13:13:09 UTC
sle15 does not include the server module. What's the attack vector?
Comment 8 Gianluca Gabrielli 2021-08-18 12:16:53 UTC
(In reply to Ludwig Nussel from comment #5)
> sle15 does not include the server module. What's the attack vector?

I can find the buggy function in the SUSE:SLE-15:Update/p11-kit sources. How can I see which modules are enable in our binary?
According to the related GHSA [0] also the remote command is affected as well the client library. Could you confirm that this bug is not affecting us?

[0] https://github.com/p11-glue/p11-kit/security/advisories/GHSA-5wpq-43j2-6qwc
Comment 9 Marcus Meissner 2022-07-14 07:26:10 UTC
I will just submit the fix
Comment 10 Marcus Meissner 2022-07-14 07:43:22 UTC
submited for SUSE:SLE-15:Update and also the nely forked SUSE:SLE-12-SP5:Update p11-kit

adjusted score to align with NVD
Comment 12 Swamp Workflow Management 2022-07-15 13:17:17 UTC
SUSE-SU-2022:2405-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1180065
CVE References: CVE-2020-29362
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    p11-kit-0.23.2-150000.4.16.1
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP3 (src):    p11-kit-0.23.2-150000.4.16.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    p11-kit-0.23.2-150000.4.16.1
SUSE Linux Enterprise Micro 5.2 (src):    p11-kit-0.23.2-150000.4.16.1
SUSE Linux Enterprise Micro 5.1 (src):    p11-kit-0.23.2-150000.4.16.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 14 Swamp Workflow Management 2022-08-23 13:17:56 UTC
SUSE-SU-2022:2871-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1180065
CVE References: CVE-2020-29362
JIRA References: 
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    p11-kit-0.23.2-8.10.1
SUSE Linux Enterprise Server 12-SP5 (src):    p11-kit-0.23.2-8.10.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 15 Swamp Workflow Management 2022-09-01 14:54:34 UTC
SUSE-SU-2022:2405-2: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1180065
CVE References: CVE-2020-29362
JIRA References: 
Sources used:
openSUSE Leap Micro 5.2 (src):    p11-kit-0.23.2-150000.4.16.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 16 Bogdano Arendartchuk 2022-09-06 14:19:08 UTC
*** Bug 1201534 has been marked as a duplicate of this bug. ***