Bug 2219263 (CVE-2023-4394) - CVE-2023-4394 kernel: btrfs: memory leak in btrfs_get_dev_args_from_path()
Summary: CVE-2023-4394 kernel: btrfs: memory leak in btrfs_get_dev_args_from_path()
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2023-4394
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2219294 2219295
Blocks: 2219643
TreeView+ depends on / blocked
 
Reported: 2023-07-03 06:31 UTC by Dhananjay Arunesh
Modified: 2023-08-17 12:29 UTC (History)
48 users (show)

Fixed In Version: Kernel 6.0-rc3
Doc Type: If docs needed, set a value
Doc Text:
A use-after-free flaw was found in btrfs_get_dev_args_from_path in fs/btrfs/volumes.c in btrfs file-system in the Linux Kernel. This flaw allows a local attacker with special privileges to cause a system crash or leak internal kernel information
Clone Of:
Environment:
Last Closed: 2023-08-17 07:27:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Dhananjay Arunesh 2023-07-03 06:31:46 UTC
A use-after-free flaw was found in btrfs_get_dev_args_from_path in fs/btrfs/volumes.c in btrfs file-system in the Linux Kernel. In this flaw a local  attacker with some special privilege may cause a system crash or a leak of internal kernel information.

In btrfs_get_dev_args_from_path(), btrfs_get_bdev_and_sb() can fail if the path is invalid. In this case, btrfs_get_dev_args_from_path() returns directly without freeing args->uuid and args->fsid allocated before, which causes memory leaks.

References:
https://patchwork.kernel.org/project/linux-btrfs/patch/20220815151606.3479183-1-r33s3n6@gmail.com/

Comment 7 Product Security DevOps Team 2023-08-17 07:27:25 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-2023-4394


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