Bug 1201309 (CVE-2014-9488) - CVE-2014-9488 less: out of bounds read access in is_utf8_well_formed()
Summary: CVE-2014-9488 less: out of bounds read access in is_utf8_well_formed()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2014-9488
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1201310
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-12 13:36 UTC by Martin Prpič
Modified: 2021-02-17 05:32 UTC (History)
3 users (show)

Fixed In Version: less 475
Clone Of:
Environment:
Last Closed: 2015-03-12 13:38:37 UTC
Embargoed:


Attachments (Terms of Use)
CVE-2014-9488 less patch (432 bytes, text/plain)
2015-03-12 13:37 UTC, Martin Prpič
no flags Details
CVE-2014-9488 less patch (1.80 KB, patch)
2015-06-01 07:09 UTC, Jozef Mlich
no flags Details | Diff

Description Martin Prpič 2015-03-12 13:36:06 UTC
The following flaw was reported in less:

An out of bounds read access in the UTF-8 decoding can be triggered with a malformed file in the tool less. The access happens in the function is_utf8_well_formed (charset.c, line 534) due to a truncated multibyte character in the sample file. It affects the latest upstream less version 470. The bug does not crash less, it can only be made visible by running less with valgrind or compiling it with Address Sanitizer. The security impact is likely minor as it is only an invalid read access.

Additional information:

https://blog.fuzzing-project.org/3-less-out-of-bounds-read-access-TFPA-0022014.html
http://seclists.org/oss-sec/2015/q1/797

Comment 1 Martin Prpič 2015-03-12 13:36:54 UTC
Created less tracking bugs for this issue:

Affects: fedora-all [bug 1201310]

Comment 2 Martin Prpič 2015-03-12 13:37:44 UTC
Created attachment 1000986 [details]
CVE-2014-9488 less patch

Comment 3 Martin Prpič 2015-03-12 13:38:37 UTC
Statement:

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Comment 4 Jozef Mlich 2015-06-01 07:09:47 UTC
Created attachment 1033170 [details]
CVE-2014-9488 less patch

The function is_utf8_well_formed was defined in charset.c with single parameter. I was surprised, that it is even compiling.

This new patch is updating own implementation of function is_utf8_well_formed and fixing also its other use. The code is taken from Mark Nudelman's unreleased version of less.

Comment 6 Cedric Buissart 2018-05-03 14:48:56 UTC
External References:

https://blog.fuzzing-project.org/3-less-out-of-bounds-read-access-TFPA-0022014.html


Note You need to log in before you can comment on or make changes to this bug.