Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950112 (GHSA-m99q-5j7x-7m9x) - <media-libs/openh264-2.6.0: Decoding functions heap overflow
Summary: <media-libs/openh264-2.6.0: Decoding functions heap overflow
Status: IN_PROGRESS
Alias: GHSA-m99q-5j7x-7m9x
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal critical
Assignee: Gentoo Security
URL: https://www.openwall.com/lists/oss-se...
Whiteboard: A2 [stable]
Keywords:
Depends on: 950120
Blocks:
  Show dependency tree
 
Reported: 2025-02-22 15:43 UTC by Yanestra
Modified: 2025-02-26 13:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yanestra 2025-02-22 15:43:37 UTC
media-libs/openh264-2.6.0 fixes an important security issue and should therefore be prioritized for stabilization.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-22 15:48:34 UTC
This should be filed as a security bug instead.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-22 15:49:40 UTC
"""
A vulnerability in the decoding functions of OpenH264 codec library could allow a remote, unauthenticated attacker to trigger a heap overflow.

This vulnerability is due to a race condition between a Sequence Parameter Set (SPS) memory allocation and a subsequent non Instantaneous Decoder Refresh (non-IDR) Network Abstraction Layer (NAL) unit memory usage. An attacker could exploit this vulnerability by crafting a malicious bitstream and tricking a victim user into processing an arbitrary video containing the malicious bistream. An exploit could allow the attacker to cause an unexpected crash in the victim's user decoding client and, possibly, perform arbitrary commands on the victim's host by abusing the heap overflow.
"""
Comment 3 Yanestra 2025-02-25 19:24:30 UTC
Since this bug endangered a lot of software, including Firefox, wouldn't it be a good idea to include in Gentoo Linux Security Advisories (GLSA)?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-25 19:31:08 UTC
(In reply to Yanestra from comment #3)
> Since this bug endangered a lot of software, including Firefox, wouldn't it
> be a good idea to include in Gentoo Linux Security Advisories (GLSA)?

It has to be stabled first. There will surely be a GLSA shortly, but not yet.
Comment 5 Yanestra 2025-02-25 19:41:06 UTC
It appears, to the current point, Firefox has not yet updated its integrated version of openh264 to the secure state, the software should be considered insecure, according to reports.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-25 20:01:31 UTC
(In reply to Yanestra from comment #5)
> It appears, to the current point, Firefox has not yet updated its integrated
> version of openh264 to the secure state, the software should be considered
> insecure, according to reports.

I think we always unbundle it in www-client/firefox. I don't know about firefox-bin, looks like no.
Comment 7 Joonas Niilola gentoo-dev 2025-02-26 09:04:15 UTC
(In reply to Yanestra from comment #5)
> It appears, to the current point, Firefox has not yet updated its integrated
> version of openh264 to the secure state, the software should be considered
> insecure, according to reports.

Firefox ships the openh264 as a downloadable plugin. You don't need to update the whole browser to get an update for the plugin. But looks like it's not being shipped yet to anything less than nightly at least:
https://bugzilla.mozilla.org/show_bug.cgi?id=1950061
although my firefox-bin _does_ say the plugin got updated today, it still shows the version as 2.3.2. It could be they just backported the patch(es) to 2.3.2, but right now I wouldn't trust it based on just a feeling.
https://hg.mozilla.org/integration/autoland/rev/63dcf08d693a

My understanding still is that if your system has openh264[plugin] installed, even firefox-bin will prefer the system-lib instead of the downloadable plugin. Though anyone can override either of them via about:config options manually.
Comment 8 Joonas Niilola gentoo-dev 2025-02-26 13:29:30 UTC
(In reply to Joonas Niilola from comment #7)
> although my firefox-bin _does_ say the plugin got updated today, 

(this is probably due to me not having the plugin installed at all before which I realized later)