Opened 6 months ago

Closed 3 months ago

Last modified 3 months ago

#23050 closed enhancement (fixed)

webkitgtk-2.52.4

Reported by: Douglas R. Reno Owned by: SecurityAdvisory
Priority: elevated Milestone: 13.1
Component: BOOK Version: git
Severity: medium Keywords:
Cc:

Description

New point version

Change History (19)

comment:1 by Douglas R. Reno, 6 months ago

Priority: normal → elevated

To help give me more details on what is going on here, I decided to check Apple's Security Advisory website and pick the updates from March 24th. After that I compared the commits in ​https://github.com/WebKit/WebKit/commits/webkitglib/2.52 against the WebKit bug numbers from the Safari 26.4 advisory.

I've come up with the following CVEs:

  • CVE-2026-20665 (Processing maliciously crafted web content may prevent Content Security Policy from being enforced), 6.5 Medium
  • CVE-2026-20643 (Processing maliciously crafted web content may bypass Same Origin Policy), 5.4 Medium
  • CVE-2026-20664 (Processing maliciously crafted web content may lead to an unexpected process crash), 4.3 Medium
  • CVE-2026-20691 (A maliciously crafted webpage may be able to fingerprint the user), 4.3 Medium
  • CVE-2026-28861 (A malicious website may be able to access script message handlers intended for other origins), 4.3 Medium
  • CVE-2026-28857 (Processing maliciously crafted web content may lead to an unexpected process crash), 6.5 Medium
  • CVE-2026-28871 (Visiting a maliciously crafted website may lead to a cross-site scripting attack), Assessment not available as the issue was last updated on 3/25. Assuming High as a result.
  • CVE-2026-28859 (A malicious website may be able to process restricted web content outside the sandbox), 4.3 Medium

There could possibly be others, but for now let's roll with this list pending a security advisory from upstream.

comment:2 by Douglas R. Reno, 6 months ago

Owner: changed from blfs-book to Douglas R. Reno
Status: new → assigned

comment:3 by Douglas R. Reno, 6 months ago

I haven't done any additional research further on this yet because building my laptop has been a very slow process due to a kernel bug (and needing to take care of non-LFS/personal responsibilities), but it has been reported that this package needs a patch from upstream to build with GTK-3.

comment:4 by Xi Ruoyao, 6 months ago

​https://github.com/WebKit/WebKit/commit/40c315ca7b3ad6ae5c98d72a6927b3a75b43cb46.patch

I'm also hitting a runtime crash since 2.52.0: ​https://bugs.webkit.org/show_bug.cgi?id=309296. Per the discussion it seems we can do sed '/USE_COORDINATED_GRAPHICS_ASYNC_SCROLLBAR/s/1/0/' -i Source/WTF/wtf/PlatformUse.h use ​https://bugs.webkit.org/attachment.cgi?id=478833 as a workaround.

Last edited 6 months ago by Xi Ruoyao (previous) (diff)

comment:6 by Douglas R. Reno, 6 months ago

Summary: webkitgtk-2.52.1 → webkitgtk-2.52.3

Now 2.52.3

comment:7 by pierre, 4 months ago

Note that gcc-16 breaks webkitgtk-2.52, not sure if this is fixed in later versions. See ​https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=683173671b134abeb2379bc77c0877f240421e2d.

comment:8 by Xi Ruoyao, 4 months ago

Not yet. I just submitted it today: ​https://github.com/WebKit/WebKit/pull/65659

comment:9 by pierre, 4 months ago

Can be implemented with a sed:

sed -e '/CodeOrigin/a #include "DFGBasicBlockInlines.h"' \
    -i Source/JavaScriptCore/dfg/DFGLoopUnrollingPhase.cpp

comment:10 by pierre, 4 months ago

For the security issues, see ​https://webkitgtk.org/security/WSA-2026-0002.html. They have the same issues as the ones you found.

comment:11 by Douglas R. Reno, 4 months ago

Summary: webkitgtk-2.52.3 → webkitgtk-2.52.4

comment:12 by Douglas R. Reno, 4 months ago

It looks like the change for building with gcc-16 is now in this release

comment:13 by pierre, 4 months ago

webkit-2.52.4 fixes 16 CVE's! ​https://webkitgtk.org/security/WSA-2026-0003.html (I have not checked the ones that are relevant to webkitgtk

comment:14 by Douglas R. Reno, 4 months ago

Owner: changed from Douglas R. Reno to blfs-book
Status: assigned → new

I'm going to reassign these to the book for now so whoever wants to do them can do them.

In the meantime I will continue working on rivendell, but I do not want to continue holding the project back on important issues.

comment:15 by pierre, 4 months ago

Owner: changed from blfs-book to pierre
Status: new → assigned

comment:16 by pierre, 4 months ago

Owner: changed from pierre to SecurityAdvisory
Status: assigned → new

Updated at 968bde834. Leaving open for SA

comment:17 by Douglas R. Reno, 3 months ago

SA-13.0-124 issued. This one was a bit of a challenge for testing. Both Yelp and Epiphany had problems processing CSS, which caused the center of the window to contain all of the text and labels. Not entirely sure what happened here as it went away after I started trying different desktop environments (since I was in Plasma and the version of Plasma that BLFS 13.0 shipped with has some weird rendering quirks with Wayland sessions), but even after rebooting it now works in Plasma.

comment:18 by Douglas R. Reno, 3 months ago

Resolution: → fixed
Status: new → closed

comment:19 by Xi Ruoyao, 3 months ago

The proper scaling of the page content seems depending on gtk4 => xdg-desktop-portal now. When xdg-desktop-portal-gnome was not installed on my system all gtk4 applications have scaling issue with HiDPI (so I added a runtime dependency to the gtk4 page).

On another distro I observed a significant scaling issue of webkitgtk with Plasma 6: the page is down-scaled for a insanely large factor and webkitgtk frequently crashes with the insane layout. The initial diagnose suggests the monitor scaling factor seems miscalculated to zero on that system (so some floating-point calculations about scaling produces NaN and the Web Inspector shows those NaNs). My BLFS installation does not have KDE so I don't know if it affects BLFS as well.

Note: See TracTickets for help on using tickets.