Date: Wed, 13 Apr 2022 00:57:38 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260546] nfsv4_loadattr() can pass huge sizes to malloc() Message-ID: <bug-260546-227-liZllpW4bU@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-260546-227@https.bugs.freebsd.org/bugzilla/> References: <bug-260546-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260546 Rick Macklem <rmacklem@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |rmacklem@FreeBSD.org --- Comment #1 from Rick Macklem <rmacklem@FreeBSD.org> --- Created attachment 233181 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D233181&action= =3Dedit add a sanity check for a large owner/Owner_group string There is no upper limit for the length of an Owner/Owner_group string specified in the RFCs. As such, this patch uses a large (10K) sanity limit. I will post on a FreeBSD mailing list to try and get a better upper bound for a user/group name. However, any reasonable sanity limit should fix this problem. I did Owner as well as Owner_group, since they were both affected the same way. If the reporter has a way to test this, maybe they can report back if the patch fixes the problem for them? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260546-227-liZllpW4bU>