mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix buffer overflows in nfs code
@ 2019-09-02 11:44 Sascha Hauer
  2019-09-02 11:44 ` [PATCH 1/2] net: nfs: Fix possible buffer overflow Sascha Hauer
  2019-09-02 11:44 ` [PATCH 2/2] fs: " Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Hauer @ 2019-09-02 11:44 UTC (permalink / raw)
  To: Barebox List

These patches fix possible buffer overflows in the nfs code. We take a
32bit value read from an incoming network packet as length argument to
memcpy without boundary checking. The patches add the necessary boundary
checks. The patches can be backported to any past version, let me know
if you are interested in any specific version.

Sascha Hauer (2):
  net: nfs: Fix possible buffer overflow
  fs: nfs: Fix possible buffer overflow

 fs/nfs.c  | 4 ++++
 net/nfs.c | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-09-02 11:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-02 11:44 [PATCH 0/2] Fix buffer overflows in nfs code Sascha Hauer
2019-09-02 11:44 ` [PATCH 1/2] net: nfs: Fix possible buffer overflow Sascha Hauer
2019-09-02 11:44 ` [PATCH 2/2] fs: " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox