Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 865249 (CVE-2022-38223)

Summary: <www-client/w3m-20230121: oob write
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: IN_PROGRESS ---    
Severity: minor CC: nrk, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/tats/w3m/issues/242
See Also: https://github.com/gentoo/gentoo/pull/29229
Whiteboard: B3 [glsa? cleanup]
Package list:
Runtime testing required: ---
Bug Depends on: 892950    
Bug Blocks:    

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-08-15 16:17:26 UTC
CVE-2022-38223:

There is an out-of-bounds write in checkType located in etc.c in w3m 0.5.3. It can be triggered by sending a crafted HTML file to the w3m binary. It allows an attacker to cause Denial of Service or possibly have unspecified other impact.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-22 06:20:08 UTC
ping. Please backport https://github.com/tats/w3m/commit/419ca82d57c72242817b55e2eaa4cdbf6916e7fa.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-22 06:20:19 UTC
(In reply to Sam James from comment #1)
> ping. Please backport
> https://github.com/tats/w3m/commit/419ca82d57c72242817b55e2eaa4cdbf6916e7fa.

(or just take a new snapshot.)
Comment 3 NRK 2023-01-23 13:38:05 UTC
> (or just take a new snapshot.)

There was a new version realeased recently. I already have an ebuild working and tested but forgot to open the PR, will do so soon.
Comment 4 Larry the Git Cow gentoo-dev 2023-01-25 06:10:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb4bbb7bddb9a2f1f8e0f1cfb90d96ee2b936f23

commit eb4bbb7bddb9a2f1f8e0f1cfb90d96ee2b936f23
Author:     Nickolas Raymond Kaczynski <nrk@disroot.org>
AuthorDate: 2023-01-23 14:16:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-25 06:10:34 +0000

    www-client/w3m: bump version to 20230121
    
    Bug: https://bugs.gentoo.org/865249
    Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
    Closes: https://github.com/gentoo/gentoo/pull/29229
    Signed-off-by: Sam James <sam@gentoo.org>

 www-client/w3m/Manifest                   |   1 +
 www-client/w3m/w3m-0.5.3_p20230121.ebuild | 134 ++++++++++++++++++++++++++++++
 2 files changed, 135 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-25 06:11:38 UTC
Please file a stable bug when ready & have it block this one. For sec bugs, we tend to be sooner than the normal 30 days unless an issue comes up.