Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2023 20:26:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 207629] Integer overflow in sysctl_kern_proc_args
Message-ID:  <bug-207629-227-IbTYmjZVtR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207629-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207629-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=3D207629

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |markj@FreeBSD.org
             Status|New                         |Closed

--- Comment #2 from Mark Johnston <markj@FreeBSD.org> ---
Sorry that this didn't get attention when it was submitted.  I think this h=
as
since been fixed by commit 712dda7fb0b83, though it's possible that somethi=
ng
else mitigated it before that.

> There is another possibility though; if `req->newlen` is `-12`, the alloc=
ation will be 0, and the 2 writes in `pargs_alloc` will be out of bounds.

An allocation length of zero will return a chunk of 16 bytes, so I don't th=
ink
this could have resulted in an out-of-bounds write.

--=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-207629-227-IbTYmjZVtR>