lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <AS4PR05MB96479C038FC4E27E85435FE888402@AS4PR05MB9647.eurprd05.prod.outlook.com>
Date: Sun, 4 Feb 2024 15:33:23 +0000
From: Tung Quang Nguyen <tung.q.nguyen@...tech.com.au>
To: Shigeru Yoshida <syoshida@...hat.com>, "jmaloy@...hat.com"
	<jmaloy@...hat.com>, "ying.xue@...driver.com" <ying.xue@...driver.com>,
	"davem@...emloft.net" <davem@...emloft.net>, "edumazet@...gle.com"
	<edumazet@...gle.com>, "kuba@...nel.org" <kuba@...nel.org>,
	"pabeni@...hat.com" <pabeni@...hat.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"tipc-discussion@...ts.sourceforge.net"
	<tipc-discussion@...ts.sourceforge.net>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>,
	"syzbot+5142b87a9abc510e14fa@...kaller.appspotmail.com"
	<syzbot+5142b87a9abc510e14fa@...kaller.appspotmail.com>
Subject: RE: [PATCH net] tipc: Check the bearer type before calling
 tipc_udp_nl_bearer_add()

> net/tipc/bearer.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
>diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index 2cde375477e3..878415c43527 100644
>--- a/net/tipc/bearer.c
>+++ b/net/tipc/bearer.c
>@@ -1086,6 +1086,12 @@ int tipc_nl_bearer_add(struct sk_buff *skb, struct genl_info *info)
>
> #ifdef CONFIG_TIPC_MEDIA_UDP
> 	if (attrs[TIPC_NLA_BEARER_UDP_OPTS]) {
>+		if (b->media->type_id != TIPC_MEDIA_TYPE_UDP) {
>+			rtnl_unlock();
>+			NL_SET_ERR_MSG(info->extack, "UDP option is unsupported");
>+			return -EINVAL;
>+		}
>+
> 		err = tipc_udp_nl_bearer_add(b,
> 					     attrs[TIPC_NLA_BEARER_UDP_OPTS]);
> 		if (err) {
>--
>2.41.0
>
Reviewed-by: Tung Nguyen <tung.q.nguyen@...tech.com.au>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ