CVE-2023-52522: net: fix possible store tearing in neigh_periodic_work()

Published Mar 2, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: fix possible store tearing in neighperiodicwork()

The Linux kernel CVE team has assigned CVE-2023-52522 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024030253-CVE-2023-52522-6abd@gregkh/T/#u

Other sources

In the Linux kernel, the following vulnerability has been resolved:

net: fix possible store tearing in neighperiodicwork()

While looking at a related syzbot report involving neighperiodicwork(), I found that I forgot to add an annotation when deleting an RCU protected item from a list.

Readers use rcudeference(np), we need to use either rcuassignpointer() or WRITEONCE() on writer side to prevent store tearing.

I use rcuassignpointer() to have lockdep support, this was the choice made in neighflushdev().

NVD

Affected Software

16 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/kernel<5.4.258
5.4.258
redhat/kernel<5.10.198
5.10.198
redhat/kernel<5.15.135
5.15.135
redhat/kernel<6.1.57
6.1.57
redhat/kernel<6.5.7
6.5.7
redhat/kernel<6.6
6.6
Linux Linux kernel>=2.6.37<5.4.258
Linux Linux kernel>=5.5<5.10.198
Linux Linux kernel>=5.11<5.15.135
Linux Linux kernel>=5.16<6.1.57
Linux Linux kernel>=6.2<6.5.7
Linux Linux kernel=6.6-rc1
Linux Linux kernel=6.6-rc2
Linux Linux kernel=6.6-rc3
Linux Linux kernel=6.6-rc4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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
  2. Upgrade

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

    Fixed in 5.4.258
  3. Upgrade

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

    Fixed in 5.10.198
  4. Upgrade

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

    Fixed in 5.15.135
  5. Upgrade

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

    Fixed in 6.1.57
  6. Upgrade

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

    Fixed in 6.5.7
  7. Upgrade

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

    Fixed in 6.6
  8. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch CVE-2023-52522
  9. Configuration

    When updating or deleting an RCU protected item/pointer used by readers via rcu_deference(*np), ensure the writer side uses rcu_assign_pointer() (as chosen in neigh_flush_dev()) or WRITE_ONCE() to prevent possible store tearing in neigh_periodic_work().

    Linux kernel net: neigh_periodic_work()/writer side (RCU-protected list deletion) RCU writer publication primitive = use rcu_assign_pointer() or WRITE_ONCE() when deleting/updating the RCU-protected pointer to prevent store tearing

Event History

Mar 2, 2024
CVE Published
via MITRE·09:52 PM
Data Sourced
via MITRE·09:52 PM
DescriptionSeverity
Data Sourced
via NVD·10:15 PM
DescriptionSeverity
Data Sourced
via NVD·10:15 PM
RemedyAffected Software
Mar 4, 2024
Data Sourced
via Red Hat·07:38 PM
DescriptionSeverityAffected Software
Mar 5, 2025
Data Sourced
via Launchpad·03:43 PM
Description
Apr 26, 2025
Data Sourced
via Ubuntu·03:52 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-52522?

The severity of CVE-2023-52522 is classified as moderate.

2

How do I fix CVE-2023-52522?

To fix CVE-2023-52522, upgrade the Linux kernel to version 5.4.258, 5.10.198, 5.15.135, 6.1.57, 6.5.7, or 6.6.

3

Which Linux kernel versions are affected by CVE-2023-52522?

CVE-2023-52522 affects Linux kernel versions up to 5.4.257, 5.10.197, 5.15.134, 6.1.56, 6.5.6, and all lower.

4

Is there a workaround for CVE-2023-52522?

There is no specific workaround for CVE-2023-52522 besides upgrading to a fixed version of the kernel.

5

What does CVE-2023-52522 affect in the Linux kernel?

CVE-2023-52522 affects the network stack, specifically causing possible store tearing in the neigh_periodic_work function.

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