{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50676",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-12-09T01:26:45.991Z",
        "datePublished": "2025-12-09T01:29:29.166Z",
        "dateUpdated": "2026-08-05T08:59:22.454Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:59:22.454Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks()\n\nsyzbot is reporting lockdep warning at rds_tcp_reset_callbacks() [1], for\ncommit ac3615e7f3cffe2a (\"RDS: TCP: Reduce code duplication in\nrds_tcp_reset_callbacks()\") added cancel_delayed_work_sync() into a section\nprotected by lock_sock() without realizing that rds_send_xmit() might call\nlock_sock().\n\nWe don't need to protect cancel_delayed_work_sync() using lock_sock(), for\neven if rds_{send,recv}_worker() re-queued this work while __flush_work()\n from cancel_delayed_work_sync() was waiting for this work to complete,\nretried rds_{send,recv}_worker() is no-op due to the absence of RDS_CONN_UP\nbit."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                        "baseScore": 7.5,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - The vulnerable rds_tcp_reset_callbacks() path is reached from rds_tcp_accept_one() when a remote peer TCP-connects to the RDS/TCP listener on port 16385 during duelling-SYN/reconnect handling; in an RDS-cluster deployment this is a network-facing path without requiring a local syscall.\nAC:L - A remote peer can drive reconnects while send/recv workers are active (normal RDS traffic), controlling both sides of the lock-ordering race; no rare victim-only state beyond an active RDS/TCP deployment is required.\nPR:N - The RDS/TCP accept path performs no peer authentication or credential check before reaching rds_tcp_reset_callbacks(); connecting to the listener is sufficient.\nUI:N - No victim action is required; the attacker triggers the path by initiating TCP reconnect/duelling-SYN sequences against the RDS listener.\nS:U - Impact is confined to kernel locking/availability on the same host; it does not cross a VM, IOMMU, or other separate security boundary.\nC:N - This is a circular locking dependency / deadlock only; there is no memory disclosure, OOB read, or UAF read primitive.\nI:N - There is no memory corruption or write primitive; the fix only reorders cancel_delayed_work_sync() relative to lock_sock(), with no integrity-impacting exploit path.\nA:H - Holding the socket lock across cancel_delayed_work_sync() can deadlock against rds_send_worker/rds_recv_worker (which take the same sock lock via cork/recv), hanging the RDS workqueue and denying service."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/rds/tcp.c"
                    ],
                    "versions": [
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "5d2ba255e93211e541373469dffbda7c99dfa0e5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "2425007c0967a7c04b0dee7cce05ecf0ca869ad1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "e3cb25d3ad08f5dbd53ce2b31720cad529944322",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "360aa7219285fac63dab99706a16f2daf3222abe",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "da349221c4d2d4ac5f606c1c3b36d4ef0b3e6a0c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "30bfa5aa7228eb1e67663d67e553627e572cc717",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "c380c28ab9b15fc53565909c814f6dd3e7f77c4b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "afe7053c390fe8ff27d0c2ceaece5625283044ba",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ac3615e7f3cffe2a1a6b25172dfd09e138593d82",
                            "lessThan": "a91b750fd6629354460282bbf5146c01b05c4859",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/rds/tcp.c"
                    ],
                    "versions": [
                        {
                            "version": "4.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.331",
                            "lessThanOrEqual": "4.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.296",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.262",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.220",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.150",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.75",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.17",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.3",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "4.9.331"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "4.14.296"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "4.19.262"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.4.220"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.10.150"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.15.75"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "5.19.17"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.0.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.8",
                                    "versionEndExcluding": "6.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/5d2ba255e93211e541373469dffbda7c99dfa0e5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2425007c0967a7c04b0dee7cce05ecf0ca869ad1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e3cb25d3ad08f5dbd53ce2b31720cad529944322"
                },
                {
                    "url": "https://git.kernel.org/stable/c/360aa7219285fac63dab99706a16f2daf3222abe"
                },
                {
                    "url": "https://git.kernel.org/stable/c/da349221c4d2d4ac5f606c1c3b36d4ef0b3e6a0c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/30bfa5aa7228eb1e67663d67e553627e572cc717"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c380c28ab9b15fc53565909c814f6dd3e7f77c4b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/afe7053c390fe8ff27d0c2ceaece5625283044ba"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a91b750fd6629354460282bbf5146c01b05c4859"
                }
            ],
            "title": "net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}