CVE-2026-74666
Beschrijving NL
In de Linux kernel is de volgende kwetsbaarheid verholpen:
pakket: synchroniseer drukverlaging met herconfiguratie van de ring
packet_set_ring() werkt de RX-ringstatus bij onder sk_receive_queue.lock,
maar werd gebruikt om de tpacket-ontvangstmodus te publiceren via po->prot_hook.func
na het loslaten van dat slot. packet_poll() en packet_recvmsg() kunnen dan
het pad van de drukverwijdering uitvoeren nadat de ring is ontruimd, terwijl
nog steeds tpacket_rcv ziet, waardoor __packet_rcv_HAS_room() niet meer verwijst
oude of LEGE ringopslag. Verplaats de bestaande ontvangsthaaktoewijzing naar dezelfde
sk_receive_queue.lock sectie als de ring status update. Bewaar de
toewijzing anders ongewijzigd, inclusief bij TX-ringherconfiguratie, aan
vermijd het toevoegen van gedragsveranderingen die niet vereist zijn voor de oplossing. Serialiseer packet_recvmsg () drukverwijdering met dezelfde wachtrijvergrendeling
pas nadat PACKET_SOCK_PRESSURE is waargenomen. Als de vlag duidelijk is
en de socket is verwijderd van tpacket_rcv, packet_set_ring() heeft
heeft de socket al losgekoppeld en gewacht op Synchronize_net(), dus geen nieuwe
pakketinvoer kan de vlag opnieuw instellen. packet_poll() bevat al sk_receive_queue.lock, dus gebruikt het de nieuwe
ontgrendelde helper direct.
Origineel (Engels) tonen
In the Linux kernel, the following vulnerability has been resolved:
packet: synchronize pressure clearing with ring reconfiguration
packet_set_ring() updates the RX ring state under sk_receive_queue.lock,
but used to publish the tpacket receive mode through po->prot_hook.func
after releasing that lock. packet_poll() and packet_recvmsg() can then
run the pressure clearing path after the ring has been cleared while
still seeing tpacket_rcv, causing __packet_rcv_has_room() to dereference
stale or NULL ring storage.
Move the existing receive hook assignment into the same
sk_receive_queue.lock section as the ring state update. Keep the
assignment otherwise unchanged, including on TX ring reconfiguration, to
avoid adding behavior changes that are not required for the fix.
Serialize packet_recvmsg() pressure clearing with the same queue lock
only after PACKET_SOCK_PRESSURE has been observed. If the flag is clear
and the socket has moved away from tpacket_rcv, packet_set_ring() has
already detached the socket and waited for synchronize_net(), so no new
packet input can set the flag again.
packet_poll() already holds sk_receive_queue.lock, so it uses the new
unlocked helper directly.