From: Greg KH <gregkh@linuxfoundation.org>
To: Zubin Mithra <zsm@chromium.org>
Cc: stable@vger.kernel.org, groeck@chromium.org,
kadlec@blackhole.kfki.hu, sploving1@gmail.com,
pablo@netfilter.org, fw@strlen.de, davem@davemloft.net
Subject: Re: 644c7e48cb59 ("netfilter: nf_conntrack_tcp: Fix stack out of bounds when parsing TCP options")
Date: Tue, 12 Mar 2019 14:23:12 -0700 [thread overview]
Message-ID: <20190312212312.GA12289@kroah.com> (raw)
In-Reply-To: <20190312211049.GA108422@google.com>
On Tue, Mar 12, 2019 at 02:10:50PM -0700, Zubin Mithra wrote:
> Hello,
>
> Syzkaller has triggered a stack OOB read when fuzzing a 4.4 kernel with the following stacktrace.
> Call Trace:
> [<ffffffff81ca8b5d>] __dump_stack lib/dump_stack.c:15 [inline]
> [<ffffffff81ca8b5d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
> [<ffffffff814d246d>] print_address_description mm/kasan/report.c:192 [inline]
> [<ffffffff814d246d>] kasan_report_error mm/kasan/report.c:278 [inline]
> [<ffffffff814d246d>] kasan_report.part.2+0x44d/0x540 mm/kasan/report.c:303
> [<ffffffff814d258e>] kasan_report mm/kasan/report.c:321 [inline]
> [<ffffffff814d258e>] __asan_report_load1_noabort+0x2e/0x30 mm/kasan/report.c:321
> [<ffffffff823c161b>] tcp_options.isra.16+0x44b/0x490 net/netfilter/nf_conntrack_proto_tcp.c:413
> [<ffffffff823c1bb4>] tcp_new+0x554/0x960 net/netfilter/nf_conntrack_proto_tcp.c:1138
> [<ffffffff823ac362>] init_conntrack+0xed2/0x14d0 net/netfilter/nf_conntrack_core.c:951
> [<ffffffff823ad7a0>] resolve_normal_ct net/netfilter/nf_conntrack_core.c:1049 [inline]
> [<ffffffff823ad7a0>] nf_conntrack_in+0xe40/0x13c0 net/netfilter/nf_conntrack_core.c:1138
> [<ffffffff82729036>] ipv4_conntrack_in+0x66/0x90 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c:150
> [<ffffffff82388428>] nf_iterate+0x158/0x230 net/netfilter/core.c:276
> [<ffffffff823886b5>] nf_hook_slow+0x1b5/0x320 net/netfilter/core.c:308
> [<ffffffff825af029>] nf_hook_thresh include/linux/netfilter.h:187 [inline]
> [<ffffffff825af029>] NF_HOOK_THRESH include/linux/netfilter.h:224 [inline]
> [<ffffffff825af029>] NF_HOOK include/linux/netfilter.h:249 [inline]
> [<ffffffff825af029>] ip_rcv+0xe29/0x1380 net/ipv4/ip_input.c:455
> [<ffffffff822543fe>] __netif_receive_skb_core+0xa6e/0x27c0 net/core/dev.c:4000
> [<ffffffff822561b0>] __netif_receive_skb+0x60/0x1c0 net/core/dev.c:4035
> [<ffffffff8225640e>] netif_receive_skb_internal+0xfe/0x380 net/core/dev.c:4063
> [<ffffffff82256730>] netif_receive_skb+0xa0/0x300 net/core/dev.c:4087
> [<ffffffff8207c793>] tun_get_user+0xc93/0x2370 drivers/net/tun.c:1269
> [<ffffffff8207e08a>] tun_chr_write_iter+0xda/0x190 drivers/net/tun.c:1292
> [<ffffffff8150d01e>] new_sync_write fs/read_write.c:478 [inline]
> [<ffffffff8150d01e>] __vfs_write+0x32e/0x440 fs/read_write.c:491
> [<ffffffff8150eb4c>] vfs_write+0x16c/0x4a0 fs/read_write.c:538
> [<ffffffff815111b9>] SYSC_write fs/read_write.c:585 [inline]
> [<ffffffff815111b9>] SyS_write+0xd9/0x1b0 fs/read_write.c:577
> [<ffffffff82a09298>] entry_SYSCALL_64_fastpath+0x12/0x8d
>
> Could the following patch be applied v4.4.y? This patch is present in v4.9.y.
> * 644c7e48cb59 ("netfilter: nf_conntrack_tcp: Fix stack out of bounds when parsing TCP options")
>
>
> Tests run:
> * Chrome OS tryjobs
> * Syzkaller reproducer
Now queued up, thanks.
greg k-h
prev parent reply other threads:[~2019-03-12 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-12 21:10 644c7e48cb59 ("netfilter: nf_conntrack_tcp: Fix stack out of bounds when parsing TCP options") Zubin Mithra
2019-03-12 21:23 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190312212312.GA12289@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=davem@davemloft.net \
--cc=fw@strlen.de \
--cc=groeck@chromium.org \
--cc=kadlec@blackhole.kfki.hu \
--cc=pablo@netfilter.org \
--cc=sploving1@gmail.com \
--cc=stable@vger.kernel.org \
--cc=zsm@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox