<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.rosa.ru/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://bugzilla.rosa.ru/"
          
          maintainer="d.postnikov@rosa.ru"
>

    <bug>
          <bug_id>13912</bug_id>
          
          <creation_ts>2023-10-18 20:29:25 +0300</creation_ts>
          <short_desc>[CVE 21] opencryptoki 3.14.0  CVEs found</short_desc>
          <delta_ts>2024-01-11 07:07:17 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>ROSA-based products</classification>
          <product>ROSA Fresh</product>
          <component>System (kernel, glibc, systemd, bash, PAM...)</component>
          <version>All</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>CVE-2021-3798,</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Normal</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yury">y.tumanov</reporter>
          <assigned_to name="ROSA Linux Bugs">bugs</assigned_to>
          <cc>a.proklov</cc>
    
    <cc>e.kosachev</cc>
    
    <cc>m.novosyolov</cc>
    
    <cc>s.matveev</cc>
    
    <cc>y.tumanov</cc>
          
          <cf_platform>2021.1</cf_platform>
          <cf_security_code></cf_security_code>
          <cf_package></cf_package>
          

      

      

      <flag name="secteam_verified"
          id="14212"
          type_id="2"
          status="?"
          setter="y.tumanov"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69800</commentid>
    <comment_count>0</comment_count>
    <who name="Yury">y.tumanov</who>
    <bug_when>2023-10-18 20:29:25 +0300</bug_when>
    <thetext>Please patch CVEs for package opencryptoki version 3.14.0
  
INFO (CVEs are): opencryptoki 3.14.0
 cves found
CVE-2021-3798
Desc: A flaw was found in openCryptoki. The openCryptoki Soft token does not check if an EC key is valid when an EC key is created via C_CreateObject, nor when C_DeriveKey is used with ECDH public data. This may allow a malicious user to extract the private key by performing an invalid curve attack.
Link: https://nvd.nist.gov/vuln/detail/CVE-2021-3798
Severity: MEDIUM</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70305</commentid>
    <comment_count>1</comment_count>
    <who name="Vladimir Potapov">v.potapov</who>
    <bug_when>2023-10-20 18:01:37 +0300</bug_when>
    <thetext>*** Bug 13780 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70963</commentid>
    <comment_count>2</comment_count>
    <who name="Aleksandr Proklov">a.proklov</who>
    <bug_when>2023-11-15 05:26:43 +0300</bug_when>
    <thetext>opencryptoki 3.14.0 не имеет кода подверженного уязвимости. код появился только с версии 3.15.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71435</commentid>
    <comment_count>3</comment_count>
    <who name="Mikhail Novosyolov">m.novosyolov</who>
    <bug_when>2023-12-11 12:09:31 +0300</bug_when>
    <thetext>(In reply to Aleksandr Proklov from comment #2)
&gt; opencryptoki 3.14.0 не имеет кода подверженного уязвимости. код появился
&gt; только с версии 3.15.0.

Да. Смотрим git blame на момент исправляющего уязвимость коммита:
https://github.com/opencryptoki/opencryptoki/blame/4e3b43c3d8844402c04a66b55c6c940f965109f0/usr/lib/soft_stdll/soft_specific.c
Видим, что уязвимый код был добавлен коммитом https://github.com/opencryptoki/opencryptoki/blob/v3.14.0/usr/lib/soft_stdll/soft_specific.c , который есть только с версии 3.15.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71436</commentid>
    <comment_count>4</comment_count>
    <who name="Mikhail Novosyolov">m.novosyolov</who>
    <bug_when>2023-12-11 12:13:53 +0300</bug_when>
    <thetext>неправильная последняя ссылка
https://github.com/opencryptoki/opencryptoki/commit/a179fd01a265a98194d9c06ec5958da1dd2ecae3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71894</commentid>
    <comment_count>5</comment_count>
    <who name="Vladimir Potapov">v.potapov</who>
    <bug_when>2024-01-11 07:07:17 +0300</bug_when>
    <thetext>*** Bug 13285 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>