OPNsense - FreeBSD source
Find a file
Pierre Pronchery 152bb8e302 umb: avoid buffer overflow in umb_getinfobuf()
umb_getinfobuf() is called with offs and size taken from messages sent
by the USB device. The sanity check is not sufficient, due to a possible
integer wrap. This can allow a broken or malicious USB device, or
possibly the network operator, to cause a buffer overflow.

This fix from Gerhard Roth was obtained after coordination upstream with
OpenBSD. It converts the variables to 64-bit integers, which should
mitigate the risk of overflows.

PR:             284906
Reported by:    Robert Morris <rtm@lcs.mit.edu>
Approved by:	philip (mentor)
Sponsored by:   The FreeBSD Foundation
2025-05-29 15:07:54 +02:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github github: Fix checklist action 2025-04-28 15:27:29 -06:00
bin atf: Don't be deterred by weird umasks. 2025-05-24 12:03:39 +02:00
cddl add packages for libufs, libzfs 2025-05-05 16:39:25 +01:00
contrib Revert "Mark several getaddrinfo tests as XFAIL" 2025-05-28 15:18:51 -07:00
crypto OpenSSH: Regen config.h for DSA retirement 2025-04-15 14:15:33 -04:00
etc column(1): add tests 2025-05-07 10:27:20 +01:00
gnu Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
include libthr: add stable user interface for sigfastblock(2) 2025-05-19 09:07:43 +03:00
kerberos5 kerberos5, libcom_err, others: append to LDFLAGS instead of replacing 2025-04-05 14:19:57 -07:00
lib Revert "Mark several getaddrinfo tests as XFAIL" 2025-05-28 15:18:51 -07:00
libexec Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation" 2025-05-28 21:24:52 +01:00
release packages: rename elftoolchain to toolchain, add more things 2025-05-28 02:16:30 +01:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin pfctl: void functions discarding ret values 2025-05-29 09:15:22 +02:00
secure caroot: Update certdata URL for GitHub switch 2025-05-28 20:55:11 +02:00
share pf.conf.5: better describe "!" 2025-05-28 23:40:36 +02:00
stand stand: Update comment 2025-05-26 11:09:54 -06:00
sys umb: avoid buffer overflow in umb_getinfobuf() 2025-05-29 15:07:54 +02:00
targets Remove vestiges of keyserv(8) 2025-05-23 22:59:33 +01:00
tests pf tests: make sctp:related_icmp test more robust 2025-05-29 10:31:23 +02:00
tools convert_ifapi: handle the special case of getting interface name 2025-05-28 15:31:53 +08:00
usr.bin move ch{own,grp}(8) and tee(1) to FreeBSD-runtime 2025-05-28 02:16:30 +01:00
usr.sbin move ch{own,grp}(8) and tee(1) to FreeBSD-runtime 2025-05-28 02:16:30 +01:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml tests/ci: Pre-commit CI with CIRRUS-CI 2025-05-27 18:22:58 +02:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.git-blame-ignore-revs .git-blame-ignore-revs: queue(3): Single space after all #define 2025-04-28 14:22:10 +02:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore Import libecc v0.9.7 2024-12-16 22:18:42 -06:00
.mailmap mailmap: add my personal address 2025-05-07 12:35:12 +01:00
CONTRIBUTING.md openssl: Import OpenSSL 3.0.15. 2024-09-03 20:56:17 -07:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
Makefile universe: Update the default GCC toolchain to GCC 14 2025-03-03 11:51:53 -05:00
Makefile.inc1 Makefile.inc1: Remove unused non-NO_ROOT support 2025-05-23 17:50:38 -04:00
Makefile.libcompat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc zoneinfo: don't install version 2025-05-22 01:17:49 +08:00
README.md openssl: Import OpenSSL 3.0.16 2025-03-06 09:49:50 -08:00
RELNOTES RELNOTES: Add note for INADDR_ANY change 2025-05-24 14:21:22 -04:00
UPDATING packages: rename elftoolchain to toolchain, add more things 2025-05-28 02:16:30 +01:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.