Bug 2054135 (CVE-2021-44879)

Summary: CVE-2021-44879 kernel: NULL pointer dereference in folio_mark_dirty() via a crafted f2fs image
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bdettelb, bhu, bskeggs, chwhite, crwood, dvlasenk, hdegoede, hkrzesin, jarod, jarodwilson, jburrell, jeremy, jfaracco, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rvrbovsk, scweaver, steved, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.17 rc1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-10 17:42:53 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: 2054137, 2056274, 2056275    
Bug Blocks: 2054138    

Description Marian Rehak 2022-02-14 09:28:46 UTC
There is an NULL pointer dereference in move_data_page in fs/f2fs/gc.c when f2fs tries to migrate a block that belongs to special file, and the file doesn't have assigned address space operations pointer array for mapping->a_ops field but called  a_ops->set_dirty_page().

Reference:

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

Comment 1 Marian Rehak 2022-02-14 09:30:56 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2054137]

Comment 2 Justin M. Forbes 2022-02-15 18:59:53 UTC
This was fixed for Fedora with the 5.15.17 stable kernel updates.

Comment 14 Product Security DevOps Team 2023-05-10 17:42:48 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-44879