Project

General

Profile

Actions

Bug #4803

closed

af-packet: up/down logic leaks resources in autofp (tpacket v2)

Added by Victor Julien about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

A race condition in the logic of interface down handling leads to leaking of the socket and other resources.

The sock_usage ref count is checked to be 0 in AFPSwitchState. If it is, the resources are freed. If it isn't, which is a common thing in autofp, there are never freed and AFPTryReopen will overwrite the socket and other resources.


Related issues 1 (1 open0 closed)

Related to Suricata - Task #4799: af-packet: review iface up/down logicAssignedShivani BhardwajActions
Actions

Also available in: Atom PDF