CVE-2023-1195: Use After Free

Published Oct 2, 2022
·
Updated

A use-after-free flaw was found in reconnsetipaddrfromhostname in fs/cifs/connect.c in the Linux kernel. The issue occurs when it forgets to set the free pointer server->hostname to NULL, leading to an invalid pointer request.

Other sources

A use-after-free in reconnsetipaddrfromhostname forgets to set free pointer server->hostname to NULL. Upstream fix: https://github.com/torvalds/linux/commit/153695d36ead0ccc4d0256953c751cabf673e621

— Red Hat

Affected Software

9 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-477.10.1.rt7.274.el8_8
0:4.18.0-477.10.1.rt7.274.el8_8
redhat/kernel<0:4.18.0-477.10.1.el8_8
0:4.18.0-477.10.1.el8_8
redhat/kernel<0:5.14.0-284.11.1.el9_2
0:5.14.0-284.11.1.el9_2
redhat/kernel-rt<0:5.14.0-284.11.1.rt14.296.el9_2
0:5.14.0-284.11.1.rt14.296.el9_2
Linux Linux kernel<6.1
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/kernel<6.1
6.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-477.10.1.rt7.274.el8_8
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-477.10.1.el8_8
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:5.14.0-284.11.1.el9_2
  4. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:5.14.0-284.11.1.rt14.296.el9_2
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.1

Event History

Oct 2, 2022
CVE Published
06:30 AM
Dec 16, 2022
Data Sourced
via Red Hat·05:32 AM
DescriptionSeverityAffected Software
May 18, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:13 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·04:49 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2023-1195?

CVE-2023-1195 has been classified with a severity rating that indicates a use-after-free vulnerability, which can lead to potential denial of service or arbitrary code execution.

2

How do I fix CVE-2023-1195?

To fix CVE-2023-1195, upgrade to the latest kernel versions specified for your distribution, such as kernel-rt 0:4.18.0-477.10.1.rt7.274.el8_8 or kernel 0:5.14.0-284.11.1.el9_2.

3

What are the affected systems for CVE-2023-1195?

CVE-2023-1195 affects several versions of the Linux kernel, including multiple Red Hat and Debian packages.

4

Can CVE-2023-1195 lead to system compromise?

Yes, CVE-2023-1195 can potentially allow attackers to exploit the use-after-free flaw, leading to system compromise.

5

Is CVE-2023-1195 specific to certain Linux distributions?

CVE-2023-1195 is not limited to a single distribution and affects multiple Linux distributions, including Red Hat and Debian.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203