Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2023 22:28:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 258504] smbfs doesn't validate msg fields -> potential kernel page fault
Message-ID:  <bug-258504-227-nHJdbg9AZZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258504-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258504-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=3D258504

John Baldwin <jhb@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |jhb@FreeBSD.org
                 CC|                            |jhb@FreeBSD.org

--- Comment #1 from John Baldwin <jhb@FreeBSD.org> ---
I think there is also a bug in that smb_t2_placedata assumes that the last =
mbuf
in the chain is large enough to contain all of the bits to be discarded.  I=
've
replaced that with a call to m_adj() with a negative length which trims from
the end while handling this case.

I have not yet tested a potential fix as setting up samba is a bit more work
than some of the other bugs.  If it is not easy to test potential fix local=
ly I
can work on recreating the testing setup to test.

https://reviews.freebsd.org/D41229

--=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-258504-227-nHJdbg9AZZ>