<?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>263349</bug_id>
          <alias>CVE-2023-42883</alias>
          <creation_ts>2023-10-18 17:18:58 -0700</creation_ts>
          <short_desc>Deeply nested SVG patterns can take log time to invalidate the target element</short_desc>
          <delta_ts>2024-10-17 13:52:10 -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>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</assigned_to>
          <cc>mcatanzaro</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1986016</commentid>
    <comment_count>0</comment_count>
      <attachid>468272</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-10-18 17:18:58 -0700</bug_when>
    <thetext>Created attachment 468272
est case (will hang for 3-4 minutes)

Open the attached test case.

Result: WebKit takes 3-4 minutes to show the page.
Expected: The page is updated in reasonable time.

NOTE: This test page uses a deeply nested pattern to fill an ellipse. When a &lt;rect&gt; is added to the deepest nested pattern, it causes 10^9 invalidation. This is due to pattern rect elements nesting relationship.

NOTE: This can be fixed by marking the invalidated renderers as visited so they can be skipped if they are revisited.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986018</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-10-18 17:20:31 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/19260</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986020</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-10-18 17:21:40 -0700</bug_when>
    <thetext>*** Bug 263341 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986021</commentid>
    <comment_count>3</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-10-18 17:23:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/116532387&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986129</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-19 05:17:15 -0700</bug_when>
    <thetext>Committed 269516@main (00f03d987c0c): &lt;https://commits.webkit.org/269516@main&gt;

Reviewed commits have been landed. Closing PR #19260 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986993</commentid>
    <comment_count>5</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-10-23 16:02:09 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/apple/WebKit/pull/866</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987167</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-24 10:30:25 -0700</bug_when>
    <thetext>Committed 267815.402@safari-7617-branch (46e35d6223f3): &lt;https://commits.webkit.org/267815.402@safari-7617-branch&gt;

Reviewed commits have been landed. Closing PR #866 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989869</commentid>
    <comment_count>7</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-11-03 18:10:53 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/apple/WebKit/pull/913</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2068886</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-10-17 13:52:10 -0700</bug_when>
    <thetext>https://commits.webkit.org/269516@main</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>468272</attachid>
            <date>2023-10-18 17:18:58 -0700</date>
            <delta_ts>2023-10-18 17:18:58 -0700</delta_ts>
            <desc>est case (will hang for 3-4 minutes)</desc>
            <filename>pattern-nested-reference.html</filename>
            <type>text/html</type>
            <size>2165</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PGJvZHk+CiAgICA8c3ZnIGlkPSJzdmciIHdpZHRoPSI2MDBweCIgaGVpZ2h0PSI0MDBweCI+CiAg
ICAgICAgPGVsbGlwc2UgY3g9IjMwMCIgY3k9IjIwMCIgcng9IjI1MCIgcnk9IjE1MCIgZmlsbD0i
dXJsKCN6KSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiAvPgogICAgPC9zdmc+CiAg
ICA8c2NyaXB0PgogICAgICAgIGZ1bmN0aW9uIGNyZWF0ZVBhdHRlcm4ocGFyZW50LCBpZCwgZmls
bFVSTCwgY29sb3JzKSB7CiAgICAgICAgICAgIHZhciBwYXR0ZXJuID0gZG9jdW1lbnQuY3JlYXRl
RWxlbWVudE5TKCJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIsICJwYXR0ZXJuIik7CiAgICAg
ICAgICAgIHBhcmVudC5hcHBlbmRDaGlsZChwYXR0ZXJuKTsKCiAgICAgICA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IHZhciBzdmcgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgi
c3ZnIik7CgogICAgICAgICAgICBjb25zdCBjb2xvcnMgPSBbCiAgICAgICAgICAgICAgICAiZ3Jl
ZW4iLAogICAgICAgICAgICAgICAgImJyb3duIiwKICAgICAgICAgICAgICAgICJwaW5rIiwKICAg
ICAgICAgICAgICAgICJncmV5IiwKICAgICAgICAgICAgICAgICJjeWFuIiwKICAgICAgICAgICAg
ICAgICJncmVlbiIsCiAgICAgICAgICAgICAgICAiYnJvd24iLAogICAgICAgICAgICAgICAgInBp
bmsiLAogICAgICAgICAgICAgICAgImdyZXkiLAogICAgICAgICAgICAgICAgImN5YW4iCiAgICAg
ICAgICAgIF07CgogICAgICAgICAgICBjcmVhdGVQYXR0ZXJuKHN2ZywgInoiLCAidXJsKCNpKSIs
IGNvbG9ycyk7CiAgICAgICAgICAgIGNyZWF0ZVBhdHRlcm4oc3ZnLCAiaSIsICJ1cmwoI2gpIiwg
Y29sb3JzKTsKICAgICAgICAgICAgY3JlYXRlUGF0dGVybihzdmcsICJoIiwgInVybCgjZykiLCBj
b2xvcnMpOwogICAgICAgICAgICBjcmVhdGVQYXR0ZXJuKHN2ZywgImciLCAidXJsKCNmKSIsIGNv
bG9ycyk7CiAgICAgICAgICAgIGNyZWF0ZVBhdHRlcm4oc3ZnLCAiZiIsICJ1cmwoI2UpIiwgY29s
b3JzKTsKICAgICAgICAgICAgY3JlYXRlUGF0dGVybihzdmcsICJlIiwgInVybCgjZCkiLCBjb2xv
cnMpOwogICAgICAgICAgICBjcmVhdGVQYXR0ZXJuKHN2ZywgImQiLCAidXJsKCNjKSIsIGNvbG9y
cyk7CiAgICAgICAgICAgIGNyZWF0ZVBhdHRlcm4oc3ZnLCAiYyIsICJ1cmwoI2IpIiwgY29sb3Jz
KTsKICAgICAgICAgICAgY3JlYXRlUGF0dGVybihzdmcsICJiIiwgInVybCgjYSkiLCBjb2xvcnMp
OwogICAgICAgICAgICBjcmVhdGVQYXR0ZXJuKHN2ZywgImEiLCAibm9uZSIsIGNvbG9ycyk7CiAg
ICAgICAgfQoKICAgICAgICBzZXR1cFBhdHRlcm5zKCk7CiAgICA8L3NjcmlwdD4KPC9ib2R5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>