Thread View: muc.lists.freebsd.bugs
2 messages
2 total messages
Started by bugzilla-noreply
Mon, 02 Nov 2026 19:03
[Bug 300453] if_geneve incorrectly byte-order swaps its options field
Author: 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
[Bug 300453] if_geneve incorrectly byte-order swaps its options field
Author: bugzilla-noreply
Date: Mon, 02 Nov 2026 20:00
Date: Mon, 02 Nov 2026 20:00
16 lines
2604 bytes
2604 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300453
Mark Linimon <linimon@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |net@FreeBSD.org
--
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads