diff options
author | Eric Dumazet <[email protected]> | 2024-02-22 12:17:47 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-02-26 11:56:23 +0000 |
commit | 10bfd453da64a057bcfd1a49fb6b271c48653cdb (patch) | |
tree | c2e9d1e810ca54d41998a0ea1f7bcea3aa5be0bb /scripts/generate_rust_analyzer.py | |
parent | 1a825e4cdf457b7aef7ebbc2f1206654f5beb150 (diff) |
ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
It seems that if userspace provides a correct IFA_TARGET_NETNSID value
but no IFA_ADDRESS and IFA_LOCAL attributes, inet6_rtm_getaddr()
returns -EINVAL with an elevated "struct net" refcount.
Fixes: 6ecf4c37eb3e ("ipv6: enable IFA_TARGET_NETNSID for RTM_GETADDR")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: David Ahern <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions