From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3053388700B; Tue, 7 Apr 2020 20:58:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3053388700B From: "joseph at codesourcery dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/25620] Signed comparison vulnerability in the ARMv7 memcpy() (CVE-2020-6096) Date: Tue, 07 Apr 2020 20:58:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2020 20:58:48 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25620 --- Comment #14 from joseph at codesourcery dot com --- On Tue, 7 Apr 2020, wdijkstr at arm dot com via Glibc-bugs wrote: > Yes, and it would be even better to check for overlap, that includes this= case > and would find quite a few real bugs. I think a de facto part of the ABI is that memcpy of an object to itself=20 (source and destination pointers equal) does work; some GCC versions may=20 generate that for structure assignment in some cases where it's not know=20 if there might be such exact overlap but partial overlap would not be=20 valid (which is the standard C rule for structure assignment). (GCC won't= =20 let you declare a type occupying half the address space or more, so the=20 structure assignment case isn't applicable for such a large memcpy.) --=20 You are receiving this mail because: You are on the CC list for the bug.=