freebsd with flexible iflib nic queues
Go to file
Tom Jones 186f495d4b ping: Fix handling of IP packet sizes
Ping reads raw IP packets to parse ICMP responses. When reading the
IP Header Len (IHL) ping was was taking the value from the provided
packet without any validation. This could lead to remotely triggerable
stack corruption.

Validate the IHL against expected and recieved data sizes when reading
from the received packet and when reading any quoted packets from within
the ICMP response.

Approved by:	so
Reviewed by:	markj, asomers
Security:	FreeBSD-SA-22:15.ping
Security:	CVE-2022-23093
Sponsored by:   NetApp, Inc.
Sponsored by:   Klara, Inc.
X-NetApp-PR:    #77
Differential Revision: https://reviews.freebsd.org/D37195

(cherry picked from commit 46d7b45a26)
2022-11-29 14:56:33 -08:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github/workflows .github: Add a build on Ubuntu 22.04 using llvm 14. 2022-07-13 11:44:26 -07:00
bin sh: Fix mismatch in array bounds for vforkexecshell(). 2022-11-11 10:18:53 -08:00
cddl zfsd(8): Fix a typo in an error message 2022-11-01 07:02:22 +01:00
contrib gnu diff3: apply patch to committed src, rather than at build time 2022-11-19 14:10:48 -05:00
crypto sshd: sync tracing disable with upstream 2022-11-19 14:10:48 -05:00
etc Append Keyboard Layout specified option for using VNC. 2022-11-23 10:11:56 +01:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-19 14:10:48 -05:00
include libc: Don't warn about RRSIG replies. 2022-11-14 12:23:32 +01:00
kerberos5 pkgbase: split kerberos binaries and libs 2022-08-19 14:27:16 +01:00
lib amd64 libc: add missed GNU-stack annotation to memmove/memcpy 2022-11-25 20:36:29 +02:00
libexec wait for device mounts in zpool and dumpon 2022-11-19 09:40:48 -08:00
release Track kern.ipc.somaxconn -> kern.ipc.soacceptqueue rename 2022-10-13 20:41:30 -04:00
rescue Add an internal libiscsiutil library. 2022-04-29 14:13:00 -07:00
sbin ping: Fix handling of IP packet sizes 2022-11-29 14:56:33 -08:00
secure OpenSSL: Regen manual pages for OpenSSL 1.1.1s 2022-11-17 21:43:54 -05:00
share linuxkpi: drm-kmod debugfs support 2022-11-29 11:09:45 +01:00
stand stand: Compile out the extensive superblock diagnostic messages for BIOS loader 2022-11-17 17:19:41 -08:00
sys bhyve: Drop volatile qualifiers from snapshot code 2022-11-29 12:40:12 -05:00
targets Fix bootstrapping to actually build lldb-tblgen for later use 2021-09-07 13:08:18 +01:00
tests fusefs: fix VOP_ADVLOCK with SEEK_END 2022-11-23 13:55:15 -07:00
tools Update pkgbase metalog tool README to match installed filename 2022-11-19 14:12:48 -05:00
usr.bin Update HISTORY and AUTHORS sections for cut(1) and paste(1) 2022-11-14 08:53:17 +01:00
usr.sbin bhyve: Drop volatile qualifiers from xhci hw struct fields 2022-11-29 12:40:13 -05:00
.arcconfig arcconfig: add callsign again 2020-11-23 04:39:29 +00:00
.arclint
.cirrus.yml Cirrus-CI: add a manual amd64-gcc9 build and smoketest job 2022-02-22 14:53:02 -05:00
.clang-format clang-format: Add bitset loop macros 2021-11-01 09:20:11 -04:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore add exuberant ctags tags file to gitignore 2022-01-11 15:25:37 +02:00
COPYRIGHT copyrights: Happy New Year 2021 2020-12-31 10:29:44 -05:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Add a pointer to csprng@ for the CSPRNG driver. This is enforced anyway by 2020-09-01 08:02:12 +00:00
Makefile Add list-old-{dirs,files,libs} targets. 2022-07-13 08:22:24 -07:00
Makefile.inc1 build: Use rm -fv for BATCH_DELETE_OLD_FILES 2022-11-19 14:10:48 -05:00
Makefile.libcompat Prefer MK_SSP=no to SSP_CFLAGS= 2021-08-11 13:56:28 -03:00
Makefile.sys.inc
ObsoleteFiles.inc ithread(9): update functions to current day 2022-10-30 11:13:58 -03:00
README.md README.md: link to the list of supported platforms 2022-11-14 13:04:12 -04:00
RELNOTES RELNOTES: Note support for KTLS RX for TLS 1.3. 2022-04-29 14:08:44 -07:00
UPDATING LinuxKPI: move pm_message_t from kernel.h to pm.h 2022-07-01 13:48:24 +00: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.

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* 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.
sys/arch/conf Kernel configuration files. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries.
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.