All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] efi: fix out-of-bounds null overwrite vulnerability
@ 2016-01-07 19:05 ` Insu Yun
  0 siblings, 0 replies; 13+ messages in thread
From: Insu Yun @ 2016-01-07 19:05 UTC (permalink / raw)
  To: matt-mF/unelCI9GS6iBeEJttW/XRex20P6io,
	linux-efi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: taesoo-/4noJB3qBVQ3uPMLIKxrzw,
	yeongjin.jang-/4noJB3qBVQ3uPMLIKxrzw, insu-/4noJB3qBVQ3uPMLIKxrzw,
	changwoo-/4noJB3qBVQ3uPMLIKxrzw, Insu Yun

snprintf's return value is not bound by size value.
(https://www.kernel.org/doc/htmldocs/kernel-api/API-snprintf.html)
if printed value is larger than buffer size, it can overwrite 
null byte in out-of-bounds buffer.

Signed-off-by: Insu Yun <wuninsu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/firmware/efi/cper.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/firmware/efi/cper.c b/drivers/firmware/efi/cper.c
index d425374..77aa75f 100644
--- a/drivers/firmware/efi/cper.c
+++ b/drivers/firmware/efi/cper.c
@@ -267,7 +267,6 @@ static int cper_dimm_err_location(struct cper_mem_err_compact *mem, char *msg)
 			     "DIMM location: not present. DMI handle: 0x%.4x ",
 			     mem->mem_dev_handle);
 
-	msg[n] = '\0';
 	return n;
 }
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-01-15  2:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-07 19:05 [PATCH] efi: fix out-of-bounds null overwrite vulnerability Insu Yun
2016-01-07 19:05 ` Insu Yun
     [not found] ` <1452193530-76672-1-git-send-email-wuninsu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-01-08 10:13   ` Matt Fleming
2016-01-08 10:13     ` Matt Fleming
     [not found]     ` <20160108101323.GA2532-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>
2016-01-08 16:47       ` Luck, Tony
2016-01-08 16:47         ` Luck, Tony
     [not found]         ` <3908561D78D1C84285E8C5FCA982C28F39FA7208-8oqHQFITsIE64kNsxIetb7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-01-11 14:16           ` Matt Fleming
2016-01-11 14:16             ` Matt Fleming
     [not found]             ` <20160111141605.GC2644-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>
2016-01-11 18:16               ` Luck, Tony
2016-01-11 18:16                 ` Luck, Tony
2016-01-14 11:12                 ` Matt Fleming
     [not found]                   ` <20160114111200.GA2810-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>
2016-01-15  2:06                     ` Tony Luck
2016-01-15  2:06                       ` Tony Luck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.