Thread (9 messages) 9 messages, 5 authors, 2023-12-23

Re: [PATCH V2 next] keys/dns: fix slab-out-of-bounds in dns_resolver_preparse

From: Simon Horman <horms@kernel.org>
Date: 2023-12-16 21:06:37
Also in: keyrings, linux-security-module, lkml

On Thu, Dec 14, 2023 at 10:46:10PM +0800, Edward Adam Davis wrote:
bin will be forcibly converted to "struct dns_server_list_v1_header *", so it 
is necessary to compare datalen with sizeof(*v1).

Fixes: b946001d3bb1 ("keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry")
Reported-and-tested-by: syzbot+94bbb75204a05da3d89f@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <redacted>
---
 net/dns_resolver/dns_key.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
This change looks correct to me.
And I agree that it addresses a problem introduced by the cited commit.
I also note that it depends on the cited commit, which is not present in net.

Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help