#1146714 libre: CVE-2026-50161

Package:
src:libre
Source:
src:libre
Submitter:
Salvatore Bonaccorso
Date:
2026-10-19 00:07:02 UTC
Severity:
normal
Tags:
#1146714#5
Date:
2026-09-04 17:44:00 UTC
From:
To:
Hi,

The following vulnerability was published for libre.

CVE-2026-50161[0]:
| libre is a generic library for real-time communications with
| asynchronous input and output support. Prior to 4.8.1, the
| websock_decode() function in src/websock/websock.c contains an
| integer overflow when validating a masked WebSocket frame that uses
| the 64-bit extended length encoding. The expression 4 + hdr->len can
| wrap when hdr->len is close to UINT64_MAX, causing the
| mbuf_get_left() bounds check to pass. The subsequent XOR unmasking
| loop then writes beyond the heap buffer. Applications using
| websock_accept() or websock_accept_proto() to implement a WebSocket
| server are affected, and exploitation can cause attacker-controlled
| heap corruption or denial of service after the HTTP WebSocket
| upgrade handshake. This issue is fixed in version 4.8.1.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-50161
https://www.cve.org/CVERecord?id=CVE-2026-50161
[1] https://github.com/baresip/re/security/advisories/GHSA-hvxv-v2gp-v93h
[2] https://github.com/baresip/re/pull/1584
[3] https://github.com/baresip/re/commit/718b92615c7963670d26c1a2b246968b58d782e8

Regards,
Salvatore

#1146714#14
Date:
2026-10-18 23:04:28 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for libre (versioned as 2.0.1-3.1) and uploaded
it to DELAYED/2. Please feel free to tell me if I should cancel it.

cu
Adrian

#1146714#21
Date:
2026-10-19 00:04:46 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libre, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146714@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <bage@debian.org> (supplier of updated libre package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 19 Oct 2026 01:34:22 +0200
Source: libre
Architecture: source
Version: 2.0.1-4
Distribution: unstable
Urgency: medium
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Changed-By: Bastian Germann <bage@debian.org>
Closes: 1146714
Changes:
 libre (2.0.1-4) unstable; urgency=medium
 .
   * Team upload
 .
   [ Adrian Bunk ]
   * CVE-2026-50161: Integer overflow in websock_decode() (Closes: #1146714)
Checksums-Sha1:
 3725fcfd3d9f1a5a25cb5d62af8cbb196521117c 1857 libre_2.0.1-4.dsc
 e24be27b0bc2d948e6dd19c81408aacaab67cb92 16364 libre_2.0.1-4.debian.tar.xz
 9c6ef7c8c59e50e3c6de36473e555683e660ca26 5992 libre_2.0.1-4_source.buildinfo
Checksums-Sha256:
 dd725b3bf9f61698596294114dea077a32bf6b8b78f02a84170203a01205d883 1857 libre_2.0.1-4.dsc
 a3f27c3e8783eeda0030e23ccfb83480544b54a086ee52491212f7f953fb44e7 16364 libre_2.0.1-4.debian.tar.xz
 92fa5c168881e8b65a714d972d91547507f15d9c7c1ca43307f2fe34f8397d12 5992 libre_2.0.1-4_source.buildinfo
Files:
 c87f7da2ea8e41a44d313a9f8e696e85 1857 comm optional libre_2.0.1-4.dsc
 1e9186d1e5792d5500d50969e801455d 16364 comm optional libre_2.0.1-4.debian.tar.xz
 9a3f0203769385753adb5716a8b61593 5992 comm optional libre_2.0.1-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmrVV/QQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFNWHC/wOF/ITYcb0p89Dg3Lu96NBYJf4oXMSU2A4
DiwZK+W6EV812xNwZJLePlM3q9yEYobSuEfVBs/D3MtLo99Bw5dKX8ZlyeUS7o6F
mAk7yLW8j0k4V5lAhTjpBzc8QnsGrHswixE2fZzC6RjzfNu2zzhVC1aRbUJmR23I
YZNsaTSPell+53PGosMZd3gUSCOWwuNXSPxzXNiVEL3AzkBMGVXhAMkqmOhu3nP1
61VQ1dcqQEPENRoF9bjDtutmwNDRjmDUWk0Vn9YCbPvIpVhxRwKjSzRh2PytSXEd
OfW7nmm7I6U0TV+W9OAvduyqtD/IZDiVDrBuw8tIR6dvn61M46b+dktu/Kf4sfNB
MksfnCcSqq7dERe3FVjIs5uR3M8w3WNrybpCs/d0jf4b9Uwuy2rjUoneHQZPwt+E
7GJ7HjzivgkGeDBkwcwAtoEEXk+UOtHGhDjaXQaqLCqhHEPAn58r53ZMuzCrIvdL
z3SQ6tDj49lFnRAFZwbYgA8qCwAW9co=
=7v4k
-----END PGP SIGNATURE-----