Bug 2255268 (CVE-2023-51384) - CVE-2023-51384 openssh: destination constraints only apply to first PKCS#11 key
Summary: CVE-2023-51384 openssh: destination constraints only apply to first PKCS#11 key
Keywords:
Status: NEW
Alias: CVE-2023-51384
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2255273
Blocks: 2255265
TreeView+ depends on / blocked
 
Reported: 2023-12-19 19:01 UTC by Robb Gatica
Modified: 2024-02-28 06:19 UTC (History)
19 users (show)

Fixed In Version: openssh 9.6
Doc Type: ---
Doc Text:
A flaw was found in OpenSSH. When specifying destination constraints while adding PKCS#11-hosted private keys, the constraints only apply to the first key even in cases where the token returns multiple keys.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Robb Gatica 2023-12-19 19:01:52 UTC
In ssh-agent in OpenSSH before 9.6, when adding PKCS#11-hosted private keys while specifying destination constraints, if the PKCS#11 token returned multiple keys then only the first key had the constraints applied. Use of regular private keys, FIDO tokens and unconstrained keys are unaffected.

References:
https://github.com/openssh/openssh-portable/commit/881d9c6af9da4257c69c327c4e2f1508b2fa754b
https://www.openssh.com/txt/release-9.6
https://www.openwall.com/lists/oss-security/2023/12/18/2

Comment 1 Robb Gatica 2023-12-19 19:35:39 UTC
Created openssh tracking bugs for this issue:

Affects: fedora-all [bug 2255273]


Note You need to log in before you can comment on or make changes to this bug.