summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <fmancera@suse.de>2026-03-12 17:26:37 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-14 19:52:30 +0300
commitfa8fca88714c3a4a74f972ed37328e2f0bbef9fa (patch)
tree7e7c094179be106de13768ecc4a74d1058df1373 /include/linux
parentf807b5b9b89eb9220d034115c272c312251cbcac (diff)
downloadlinux-fa8fca88714c3a4a74f972ed37328e2f0bbef9fa.tar.xz
ipv4: validate IPV4_DEVCONF attributes properly
As the IPV4_DEVCONF netlink attributes are not being validated, it is possible to use netlink to set read-only values like mc_forwarding. In addition, valid ranges are not being validated neither but that is less relevant as they aren't in sysctl. To avoid similar situations in the future, define a NLA policy for IPV4_DEVCONF attributes which are nested in IFLA_INET_CONF. Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de> Link: https://patch.msgid.link/20260312142637.5704-1-fmancera@suse.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions