archive mirror
 help / color / mirror / Atom feed
From: "Namjae Jeon" <>
To: "'Colin King'" <>
Cc: <>, <>,
	"'Sergey Senozhatsky'" <>,
	"'Steve French'" <>,
	"'Hyunchul Lee'" <>,
Subject: RE: [PATCH][next] cifsd: fix kfree of uninitialized pointer oid
Date: Fri, 11 Jun 2021 09:40:24 +0900	[thread overview]
Message-ID: <000201d75e5a$5da793d0$18f6bb70$> (raw)
In-Reply-To: <>

> From: Colin Ian King <>
> Currently function ksmbd_neg_token_init_mech_type can kfree an uninitialized pointer oid when the call
> to asn1_oid_decode fails when vlen is out of range. All the other failure cases in function
> asn1_oid_decode set *oid to NULL on an error, so fix the issue by ensuring the vlen out of range error
> also nullifies the pointer.
> Fixes: 8bae4419ce63 ("cifsd: add goto fail in neg_token_init_mech_type()")
> Addresses-Coverity: ("Uninitialized pointer read")
> Signed-off-by: Colin Ian King <>
I will apply, Thanks for your patch!

      reply	other threads:[~2021-06-11  0:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
2021-06-10 16:46 ` Colin King
2021-06-11  0:40   ` Namjae Jeon [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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000201d75e5a$5da793d0$18f6bb70$' \ \ \ \ \ \ \ \ \ \
    --subject='RE: [PATCH][next] cifsd: fix kfree of uninitialized pointer oid' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).