Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/net



Module Name:    src
Committed By:   mrg
Date:           Tue Oct 13 09:30:53 UTC 2026

Modified Files:
        src/sys/net: bsd-comp.c

Log Message:
Properly bounds check the max_ent check in bsd_decompress().

A specially crafted packet from PPP can trigger a backwards write of
an mbuf of a character, and can cause hangs and crashes as it corrupts
memory in the kernel.

The check against max_ent has an off-by-one error, fixed in this change
and fixes the problem (tested on arm64.)

>From Acts1631 via OpenBSD.

XXX: pullup-10, pullup-11


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/net/bsd-comp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index