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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>309679</bug_id>
          
          <creation_ts>2026-03-11 08:12:35 -0700</creation_ts>
          <short_desc>Missing initialization and error checks in OpenSSL HKDF function</short_desc>
          <delta_ts>2026-04-28 07:18:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrien Destugues">pulkomandy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2189123</commentid>
    <comment_count>0</comment_count>
    <who name="Adrien Destugues">pulkomandy</who>
    <bug_when>2026-03-11 08:12:35 -0700</bug_when>
    <thetext>The HKDF() function is missing a call to EVP_PKEY_derive_init()
as done in this example code: https://docs.openssl.org/master/man3/EVP_PKEY_CTX_set_hkdf_md/#examples
(Also it hardcodes to SHA-256 instead of forwarding the algorithm parameter, and it doesn&apos;t check the return codes).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2189139</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2026-03-11 09:17:24 -0700</bug_when>
    <thetext>Thank you for the report! Could you please point to the specific place in WebKit code? Grepping for HKDF returns a lot of hits.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2189142</commentid>
    <comment_count>2</comment_count>
    <who name="Adrien Destugues">pulkomandy</who>
    <bug_when>2026-03-11 09:21:28 -0700</bug_when>
    <thetext>This is a ticket associated with the corresponding merge request:

https://github.com/WebKit/WebKit/pull/60354

I initially associated it with another existing ticket but was asked to create a separate one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2189146</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2026-03-11 09:33:33 -0700</bug_when>
    <thetext>Thank you, makes sense now! I expect that you are planning to update the commit message accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191352</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-03-18 08:13:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/172833329&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205341</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-28 07:18:45 -0700</bug_when>
    <thetext>Committed 312198@main (e611c7f8a9ff): &lt;https://commits.webkit.org/312198@main&gt;

Reviewed commits have been landed. Closing PR #60354 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>