CWE
400 416
Advisory Published
CVE Published
Updated

CVE-2023-4394: Memory leak in btrfs_get_dev_args_from_path()

First published: Mon Aug 15 2022(Updated: )

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-&gt;uuid and args-&gt;fsid allocated before, which causes memory leaks. References: <a href="https://patchwork.kernel.org/project/linux-btrfs/patch/20220815151606.3479183-1-r33s3n6@gmail.com/">https://patchwork.kernel.org/project/linux-btrfs/patch/20220815151606.3479183-1-r33s3n6@gmail.com/</a>

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/Kernel<6.0
6.0
Linux kernel<6.0
Linux kernel=6.0-rc1
Linux kernel=6.0-rc2
Linux Kernel<6.0
Linux Kernel=6.0-rc1
Linux Kernel=6.0-rc2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2023-4394?

    CVE-2023-4394 has a severity rating that indicates it can lead to system crashes or kernel information leaks.

  • How do I fix CVE-2023-4394?

    To mitigate CVE-2023-4394, upgrade the Linux Kernel to version 6.0 or later.

  • What causes CVE-2023-4394?

    CVE-2023-4394 is caused by a use-after-free flaw in the btrfs file system's kernel code.

  • Who is affected by CVE-2023-4394?

    Local attackers with certain privileges can exploit CVE-2023-4394 to cause system disruptions.

  • What systems are vulnerable to CVE-2023-4394?

    CVE-2023-4394 affects versions of the Linux Kernel up to and including version 6.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203