Use AlmaLinux OS secure boot cert
Enable Btrfs support for all kernel variants
af_unix: set gc_in_progress to true in unix_gc() {CVE-2026-53361}
hpsa: bring back deprecated PCI ids #CFHack #CFHack2024
mptsas: bring back deprecated PCI ids #CFHack #CFHack2024
megaraid_sas: bring back deprecated PCI ids #CFHack #CFHack2024
qla2xxx: bring back deprecated PCI ids #CFHack #CFHack2024
qla4xxx: bring back deprecated PCI ids
be2iscsi: bring back deprecated PCI ids
kernel/rh_messages.h: enable all disabled pci devices by moving to unmaintained
gve: update QPL page registration logic to honor max_registered_pages (backport from upstream)
gve: enable reading max ring size from the device in DQO-QPL mode (backport from upstream)
53 lines
2.0 KiB
Diff
53 lines
2.0 KiB
Diff
From 6a8f494794e402fec53e71745f5afb1c34c7621a Mon Sep 17 00:00:00 2001
|
|
From: Florian Westphal <fwestpha@redhat.com>
|
|
Date: Wed, 13 May 2026 17:15:55 +0200
|
|
Subject: [PATCH] netfilter: nfnetlink_queue: fix entry leak in bridge verdict
|
|
error path
|
|
|
|
JIRA: https://redhat.atlassian.net/browse/RHEL-168848
|
|
Upstream Status: commit f1ba83755d81
|
|
|
|
commit f1ba83755d81c6fc66ac7acd723d238f974091e9
|
|
Author: Hyunwoo Kim <imv4bel@gmail.com>
|
|
Date: Sun Mar 8 02:24:06 2026 +0900
|
|
|
|
netfilter: nfnetlink_queue: fix entry leak in bridge verdict error path
|
|
|
|
nfqnl_recv_verdict() calls find_dequeue_entry() to remove the queue
|
|
entry from the queue data structures, taking ownership of the entry.
|
|
For PF_BRIDGE packets, it then calls nfqa_parse_bridge() to parse VLAN
|
|
attributes. If nfqa_parse_bridge() returns an error (e.g. NFQA_VLAN
|
|
present but NFQA_VLAN_TCI missing), the function returns immediately
|
|
without freeing the dequeued entry or its sk_buff.
|
|
|
|
This leaks the nf_queue_entry, its associated sk_buff, and all held
|
|
references (net_device refcounts, struct net refcount). Repeated
|
|
triggering exhausts kernel memory.
|
|
|
|
Fix this by dropping the entry via nfqnl_reinject() with NF_DROP verdict
|
|
on the error path, consistent with other error handling in this file.
|
|
|
|
Fixes: 8d45ff22f1b4 ("netfilter: bridge: nf queue verdict to use NFQA_VLAN and NFQA_L2HDR")
|
|
Reviewed-by: David Dull <monderasdor@gmail.com>
|
|
Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com>
|
|
Signed-off-by: Florian Westphal <fw@strlen.de>
|
|
|
|
Signed-off-by: Florian Westphal <fwestpha@redhat.com>
|
|
|
|
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c
|
|
index d2773ce..0bb1656 100644
|
|
--- a/net/netfilter/nfnetlink_queue.c
|
|
+++ b/net/netfilter/nfnetlink_queue.c
|
|
@@ -1443,8 +1443,10 @@ static int nfqnl_recv_verdict(struct sk_buff *skb, const struct nfnl_info *info,
|
|
|
|
if (entry->state.pf == PF_BRIDGE) {
|
|
err = nfqa_parse_bridge(entry, nfqa);
|
|
- if (err < 0)
|
|
+ if (err < 0) {
|
|
+ nfqnl_reinject(entry, NF_DROP);
|
|
return err;
|
|
+ }
|
|
}
|
|
|
|
if (nfqa[NFQA_PAYLOAD]) {
|