<?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>239758</bug_id>
          <alias>CVE-2023-35074</alias>
          <creation_ts>2022-04-26 00:16:06 -0700</creation_ts>
          <short_desc>Fix variable liveness for try catch in DFG</short_desc>
          <delta_ts>2024-01-02 08:21:53 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>zhunkibatu</reporter>
          <assigned_to name="Yijia Huang">yijia_huang</assigned_to>
          <cc>mark.lam</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>saam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yijia_huang</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1864370</commentid>
    <comment_count>0</comment_count>
      <attachid>458335</attachid>
    <who name="">zhunkibatu</who>
    <bug_when>2022-04-26 00:16:06 -0700</bug_when>
    <thetext>Created attachment 458335
the minimal poc

The following PoC outputs differently before/after JIT compilation.


function opt() {
	var b = false;
	var c = -b;
	try {
		throw &quot;&quot;;
	} catch(e) {
	}
	return c;
}

let before = opt();
print(1/before); //-Infinity

for(var i=0;i&lt;10000;i++){
	opt();
}

let afterJIT = opt();
print(1/afterJIT); //Infinity</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866061</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-03 00:17:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/92654142&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884405</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-07-15 16:43:46 -0700</bug_when>
    <thetext>Ah, this is caused by 230823.
Backward propagation is running before catch live variable preservation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884410</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-07-15 16:46:47 -0700</bug_when>
    <thetext>Probably, we should insert catch-live-variable-insertion before backwards propagation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930879</commentid>
    <comment_count>4</comment_count>
    <who name="Yijia Huang">yijia_huang</who>
    <bug_when>2023-02-03 08:32:25 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9496</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930881</commentid>
    <comment_count>5</comment_count>
    <who name="Yijia Huang">yijia_huang</who>
    <bug_when>2023-02-03 08:32:51 -0800</bug_when>
    <thetext>*** Bug 251411 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931013</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-03 14:36:12 -0800</bug_when>
    <thetext>Committed 259839@main (5e1033a7cd03): &lt;https://commits.webkit.org/259839@main&gt;

Reviewed commits have been landed. Closing PR #9496 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981589</commentid>
    <comment_count>7</comment_count>
    <who name="">zhunkibatu</who>
    <bug_when>2023-09-30 20:03:08 -0700</bug_when>
    <thetext>According to acknowledgement, there seems a mistake here?

WebKit Bugzilla: 239758
CVE-2023-35074: Abysslab Dong Jun Kim(@smlijun) and Jong Seong Kim(@nevul37)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981607</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-10-01 06:24:05 -0700</bug_when>
    <thetext>Hm, I wonder if they&apos;re supposed to be credited on some *other* CVE instead.

We can ask for this to be fixed. Who should this one be attributed to? &quot;zhunkibatu&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981612</commentid>
    <comment_count>9</comment_count>
    <who name="">zhunkibatu</who>
    <bug_when>2023-10-01 09:25:27 -0700</bug_when>
    <thetext>&quot;zhunki&quot;, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002064</commentid>
    <comment_count>10</comment_count>
    <who name="">zhunkibatu</who>
    <bug_when>2023-12-26 19:49:00 -0800</bug_when>
    <thetext>Did you confirm who to aknowledge?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002084</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-12-27 05:36:44 -0800</bug_when>
    <thetext>Looks like I missed this. I&apos;ll notify Apple Product Security after the holidays.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002509</commentid>
    <comment_count>12</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-01-02 08:21:53 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #11)
&gt; Looks like I missed this. I&apos;ll notify Apple Product Security after the
&gt; holidays.

Actually I contacted Apple Product Security on October 1, but haven&apos;t received a response yet. The ticket number is OE092404867716.

They did respond to a similar request in another CVE, so my guess is they&apos;ve lost track of this one.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>458335</attachid>
            <date>2022-04-26 00:16:06 -0700</date>
            <delta_ts>2022-04-26 00:16:06 -0700</delta_ts>
            <desc>the minimal poc</desc>
            <filename>jsc_2.js</filename>
            <type>text/javascript</type>
            <size>235</size>
            <attacher>zhunkibatu</attacher>
            
              <data encoding="base64">ZnVuY3Rpb24gb3B0KCkgewoJdmFyIGIgPSBmYWxzZTsKCXZhciBjID0gLWI7Cgl0cnkgewoJCXRo
cm93ICIiOwoJfSBjYXRjaChlKSB7Cgl9CglyZXR1cm4gYzsKfQoKbGV0IGJlZm9yZSA9IG9wdCgp
OwpwcmludCgxL2JlZm9yZSk7IC8vLUluZmluaXR5Cgpmb3IodmFyIGk9MDtpPDEwMDAwO2krKyl7
CglvcHQoKTsKfQoKbGV0IGFmdGVySklUID0gb3B0KCk7CnByaW50KDEvYWZ0ZXJKSVQpOyAvL0lu
ZmluaXR5Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>