You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
netdev: prevent accessing NAPI instances from another namespace
JIRA: https://issues.redhat.com/browse/RHEL-77816
CVE: CVE-2025-21659
Upstream Status: net.git commit d1cacd7
Conflicts:
- net/core/dev.h,
conflict as we don't have upstream commits b9495b5 ("net:
move kick_defer_list_purge() to net/core/dev.h"),
ecefbc0 ("net: softnet_data: Make xmit per task"),
2fe50a4 ("net: move dev_xmit_recursion() helpers to net/core/dev.h")
commit d1cacd7
Author: Jakub Kicinski <kuba@kernel.org>
Date: Mon Jan 6 10:01:36 2025 -0800
netdev: prevent accessing NAPI instances from another namespace
The NAPI IDs were not fully exposed to user space prior to the netlink
API, so they were never namespaced. The netlink API must ensure that
at the very least NAPI instance belongs to the same netns as the owner
of the genl sock.
napi_by_id() can become static now, but it needs to move because of
dev_get_by_napi_id().
Cc: stable@vger.kernel.org
Fixes: 1287c1a ("netdev-genl: Support setting per-NAPI config values")
Fixes: 27f91aa ("netdev-genl: Add netlink framework functions for napi")
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250106180137.1861472-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
0 commit comments