Bug 1597814 (CVE-2018-13100)

Summary: CVE-2018-13100 kernel: divide-by-zero in fs/f2fs/super.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, airlied, aquini, bhu, bskeggs, dbaker, dhoward, esammons, ewk, fhrbata, hdegoede, hkrzesin, hwkernel-mgr, iboverma, ichavero, itamar, jarodwilson, jforbes, jglisse, jkacur, john.j5live, jokerman, jonathan, josef, jross, jwboyer, kernel-maint, kernel-mgr, labbott, lgoncalv, linville, lwang, matt, mchehab, mcressma, mguzik, mjg59, nmurray, plougher, rvrbovsk, skozina, slawomir, steved, sthangav, trankin, vdronov, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An issue was discovered in fs/f2fs/super.c in the Linux kernel, which does not properly validate secs_per_zone in a corrupted f2fs image. This may lead to a divide-by-zero error and a system crash.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-10 11:50:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1597816, 1597819    
Bug Blocks: 1597817    

Description Laura Pardo 2018-07-03 16:30:43 UTC
An issue was discovered in fs/f2fs/super.c in the Linux kernel, which does not properly validate secs_per_zone in a corrupted f2fs image, which may lead to a divide-by-zero error and a system crash.

References:

https://bugzilla.kernel.org/show_bug.cgi?id=200183 	

A suggested upstream patch:

https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?h=f2fs-dev&id=977f9bb558cb4a95d53b10301f5c739ed8867d4d

Comment 1 Laura Pardo 2018-07-03 16:32:21 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1597816]

Comment 6 Vladis Dronov 2018-07-10 11:50:05 UTC
Note:

An F2FS filesystem is not shipped with any of the Red Hat products.

Comment 7 Justin M. Forbes 2018-09-11 20:56:43 UTC
This issue is fixed for Fedora with the 4.18 rebases.