Page MenuHomeFreeBSD

ifnet: Fix decreasing the vnet interface count
ClosedPublic

Authored by zlei on Mar 16 2026, 3:44 AM.
Tags
None
Referenced Files
F156480235: D55873.id173746.diff
Wed, May 13, 11:19 PM
F156472933: D55873.id173753.diff
Wed, May 13, 10:13 PM
Unknown Object (File)
Mon, May 11, 1:13 PM
Unknown Object (File)
Sun, May 10, 12:11 PM
Unknown Object (File)
Sun, May 10, 12:07 PM
Unknown Object (File)
Wed, Apr 29, 10:46 AM
Unknown Object (File)
Mon, Apr 27, 1:49 PM
Unknown Object (File)
Sat, Apr 18, 7:37 PM

Details

Summary

It should be decreased only when the interface has been successfully
removed from the "active" list.

This prevents vnet_if_return() from potential OOB writes to the
allocated memory "pending".

Fixes: a779388f8bb3 if: Protect V_ifnet in vnet_if_return()
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable