Article View: muc.lists.freebsd.bugs
Article #332[Bug 300453] if_geneve incorrectly byte-order swaps its options field
From: bugzilla-noreply
Date: Mon, 02 Nov 2026 19:03
Date: Mon, 02 Nov 2026 19:03
47 lines
3425 bytes
3425 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300453
Bug ID: 300453
Summary: if_geneve incorrectly byte-order swaps its options
field
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: kevin@your.org
Created attachment 276922
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=276922&action=edit
if_geneve.c patch
if_geneve's receive processing applies ntohs() to geneve_optlen, a 6-bit field
that's already in host byte order. On little-endian systems, an option length
of 1 is interpreted as 256 units, so the receiver skips 1024 bytes instead of 4
before parsing the inner packet. The call to m_adj() is preventing any out of
bounds reads, so I don't believe there's any security impact here. Deliberately
hitting this with KASAN and INVARIANTS doesn't trigger anything, the packet
just gets dropped as invalid.
The attached patch appears to fix this, but I don't use geneve and fully test
this. I don't think it could have possibly been working right before this
though.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-300453-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 300453] if_geneve incorrectly byte-order swaps its options field Date: Mon, 02 Nov 2026 19:03:10 +0000 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-bugs@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <bug-300453-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="93374"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793646190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1xt3Cyv0r4o830i10C5TWt8WJzhZ1Q0LUnRSzEkkhVQ=; b=nVgIRWoMCl7GUucCj0mJPLj/tWUvOZCNWnEyGZxfkmAd2ZiEq13FYis/AcZrL0ojw+YMR6 ApWVYCHz5Kbg7DJy/h1W13VOMwC3dtZlOLlw3gZ3euNGah11PEnHMQJuZfViS+aibXXxpE N+vVk9J+vxcPWjRHcHK3V/inx5HeWFHJfkURD5cUIXDx0SEUP980sXDWTX0SRpRoHp3bFI kH9cN7ckRVe0K1zccDkzgHlotejmZFiMtWXFntTBHKjqfOtfjl0C+PtQuIFbedEdh9sKd9 jpaTxuFWyOwp6mzW6AzZKV6lAgkt9ULXAG1bHF64EZbvxB/7630uQ+NmJNmLYA== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes