CVE-2022-50676

net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks()

State
Published
Severity
7.5 High
Published
Dec 9, 2025
Updated
Aug 5, 2026
Reserved
Dec 9, 2025

Read the record on cve.org

Description

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

net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks()

syzbot is reporting lockdep warning at rds_tcp_reset_callbacks() [1], for commit ac3615e7f3cffe2a ("RDS: TCP: Reduce code duplication in rds_tcp_reset_callbacks()") added cancel_delayed_work_sync() into a section protected by lock_sock() without realizing that rds_send_xmit() might call lock_sock().

We don't need to protect cancel_delayed_work_sync() using lock_sock(), for even if rds_{send,recv}_worker() re-queued this work while __flush_work() from cancel_delayed_work_sync() was waiting for this work to complete, retried rds_{send,recv}_worker() is no-op due to the absence of RDS_CONN_UP bit.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before 5d2ba255e93211e541373469dffbda7c99dfa0e5Affected
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before 2425007c0967a7c04b0dee7cce05ecf0ca869ad1Affected
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before e3cb25d3ad08f5dbd53ce2b31720cad529944322Affected
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before 360aa7219285fac63dab99706a16f2daf3222abeAffected
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before da349221c4d2d4ac5f606c1c3b36d4ef0b3e6a0cAffected
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before 30bfa5aa7228eb1e67663d67e553627e572cc717Affected
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before c380c28ab9b15fc53565909c814f6dd3e7f77c4bAffected
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before afe7053c390fe8ff27d0c2ceaece5625283044baAffected
  • ac3615e7f3cffe2a1a6b25172dfd09e138593d82 to before a91b750fd6629354460282bbf5146c01b05c4859Affected
LinuxLinux
  • 4.8Affected
  • before 4.8Not affected
  • 4.9.331 through 4.9.*Not affected
  • 4.14.296 through 4.14.*Not affected
  • 4.19.262 through 4.19.*Not affected
  • 5.4.220 through 5.4.*Not affected
  • 5.10.150 through 5.10.*Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.