Description
Off-by-one vulnerability in the fgetwln function in libbsd before 0.8.2 allows attackers to have unspecified impact via unknown vectors, which trigger a heap-based buffer overflow.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libbsd | 0.8.2-1 | — |
| Debian 13 | libbsd | 0.8.2-1 | — |
| Debian 12 | libbsd | 0.8.2-1 | — |
| Debian 8 | libbsd | 0.7.0-2+deb8u1 | DLA-2052-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libbsd | 0.8.7-1ubuntu0.1 | USN-4243-1 |
| Ubuntu 16.04 LTS | libbsd | 0.8.2-1ubuntu0.1 | USN-4243-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | libbsd | 0.6.0-2ubuntu1+esm1 | USN-4243-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.4 | libbsd | 0.8.2 | — |
| Alpine v3.3 | libbsd | 0.8.2-r0 | — |
| Alpine v3.2 | libbsd | 0.6.0-r2 | — |
Advisories 2
- USN-4243-1 libbsd vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-2052-1 libbsd - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- FEDORA-2016-d3e562bb52 vendor-advisory
- https://blog.fuzzing-project.org/36-Heap-buffer-overflow-in-fgetwln-function-of-libbsd.html
- FEDORA-2016-5c3d057783 vendor-advisory
- https://bugs.freedesktop.org/show_bug.cgi?id=93881
- [oss-security] 20160128 Re: Heap buffer overflow in fgetwln function of libbsd mailing-list
- https://cgit.freedesktop.org/libbsd/commit/?id=c8f0723d2b4520bdd6b9eb7c3e7976de726d7ff7
- GLSA-201607-13 vendor-advisory
- [debian-lts-announce] 20191230 [SECURITY] [DLA 2052-1] libbsd security update mailing-list
- USN-4243-1 vendor-advisory