CVE-2022-50541

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50541
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50541.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50541
Downstream
Published
2025-10-07T15:21:06Z
Modified
2025-10-31T03:52:12.701614Z
Summary
dmaengine: ti: k3-udma: Reset UDMA_CHAN_RT byte counters to prevent overflow
Details

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

dmaengine: ti: k3-udma: Reset UDMACHANRT byte counters to prevent overflow

UDMACHANRT*BCNTREG stores the real-time channel bytecount statistics. These registers are 32-bit hardware counters and the driver uses these counters to monitor the operational progress status for a channel, when transferring more than 4GB of data it was observed that these counters overflow and completion calculation of a operation gets affected and the transfer hangs indefinitely.

This commit adds changes to decrease the byte count for every complete transaction so that these registers never overflow and the proper byte count statistics is maintained for ongoing transaction by the RT counters.

Earlier uc->bcnt used to maintain a count of the completed bytes at driver side, since the RT counters maintain the statistics of current transaction now, the maintenance of uc->bcnt is not necessary.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
25dcb5dd7b7ce5587c1df18f584ff78f51a68a94
Fixed
d68da10b0cceb4177b653833e794b2923a4ffbd7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
25dcb5dd7b7ce5587c1df18f584ff78f51a68a94
Fixed
e0b16bfbd3a4a8d09614046335f4482313e7c0c4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
25dcb5dd7b7ce5587c1df18f584ff78f51a68a94
Fixed
a065657643a62a24b4435ddcaea45f1e9378749e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
25dcb5dd7b7ce5587c1df18f584ff78f51a68a94
Fixed
7c94dcfa8fcff2dba53915f1dabfee49a3df8b88

Affected versions

v5.*

v5.10
v5.10-rc1
v5.10-rc2
v5.10-rc3
v5.10-rc4
v5.10-rc5
v5.10-rc6
v5.10-rc7
v5.11
v5.11-rc1
v5.11-rc2
v5.11-rc3
v5.11-rc4
v5.11-rc5
v5.11-rc6
v5.11-rc7
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.15.1
v5.15.10
v5.15.11
v5.15.12
v5.15.13
v5.15.14
v5.15.15
v5.15.16
v5.15.17
v5.15.18
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.25
v5.15.26
v5.15.27
v5.15.28
v5.15.29
v5.15.3
v5.15.30
v5.15.31
v5.15.32
v5.15.33
v5.15.34
v5.15.35
v5.15.36
v5.15.37
v5.15.38
v5.15.39
v5.15.4
v5.15.40
v5.15.41
v5.15.42
v5.15.43
v5.15.44
v5.15.45
v5.15.46
v5.15.47
v5.15.48
v5.15.49
v5.15.5
v5.15.50
v5.15.51
v5.15.52
v5.15.53
v5.15.54
v5.15.55
v5.15.56
v5.15.57
v5.15.58
v5.15.59
v5.15.6
v5.15.60
v5.15.61
v5.15.62
v5.15.63
v5.15.64
v5.15.65
v5.15.66
v5.15.67
v5.15.68
v5.15.69
v5.15.7
v5.15.70
v5.15.71
v5.15.72
v5.15.73
v5.15.74
v5.15.8
v5.15.9
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1
v5.19.10
v5.19.11
v5.19.12
v5.19.13
v5.19.14
v5.19.15
v5.19.16
v5.19.2
v5.19.3
v5.19.4
v5.19.5
v5.19.6
v5.19.7
v5.19.8
v5.19.9
v5.5
v5.5-rc2
v5.5-rc3
v5.5-rc4
v5.5-rc5
v5.5-rc6
v5.5-rc7
v5.6
v5.6-rc1
v5.6-rc2
v5.6-rc3
v5.6-rc4
v5.6-rc5
v5.6-rc6
v5.6-rc7
v5.7
v5.7-rc1
v5.7-rc2
v5.7-rc3
v5.7-rc4
v5.7-rc5
v5.7-rc6
v5.7-rc7
v5.8
v5.8-rc1
v5.8-rc2
v5.8-rc3
v5.8-rc4
v5.8-rc5
v5.8-rc6
v5.8-rc7
v5.9
v5.9-rc1
v5.9-rc2
v5.9-rc3
v5.9-rc4
v5.9-rc5
v5.9-rc6
v5.9-rc7
v5.9-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.0.1
v6.0.2

Database specific

vanir_signatures

[
    {
        "digest": {
            "length": 411.0,
            "function_hash": "56284888459556912624811651356543947905"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-14cea81f",
        "target": {
            "function": "udma_udma_irq_handler",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a065657643a62a24b4435ddcaea45f1e9378749e"
    },
    {
        "digest": {
            "line_hashes": [
                "203894327631349099356079589921045630692",
                "252507498207211486695386602065412089385",
                "275607708871684918730854104036280763306",
                "104993150332635462598158134293480314879",
                "268121772183252671407434957582409667219",
                "323506958750808057432175350043376614076",
                "173828241694621183667692492547647337075",
                "206983451485593885965154529809600693961",
                "3381488156813900247619195897994303888",
                "11864873693697694235295165195999854187",
                "59612999145294109462870650918499845290",
                "327710233853403611321561219154130767129",
                "32224779695870515850540788192722812916",
                "233291801865985082586703877144892888470",
                "153895646217932620563304080744887036058",
                "8910262654928999182099362046203026389",
                "323552174787328499654734802626187206629",
                "264491038373180654937894576693792103120",
                "23470002688226565786790293182262230603",
                "174579445676714016538563898628691272688",
                "162066626162744353265133444544013924960",
                "77156557851432907045531585835331079758",
                "42024753071048734204846421899870781197",
                "271326815884895324290572111769720510104",
                "322541521576605607608834081806625532555",
                "147298310749285681741465413074728371505",
                "218372623582969524397658661708346586876"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2022-50541-159cfa29",
        "target": {
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d68da10b0cceb4177b653833e794b2923a4ffbd7"
    },
    {
        "digest": {
            "length": 1008.0,
            "function_hash": "154051531378866508742082121000955247538"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-18f519eb",
        "target": {
            "function": "udma_ring_irq_handler",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d68da10b0cceb4177b653833e794b2923a4ffbd7"
    },
    {
        "digest": {
            "length": 1008.0,
            "function_hash": "154051531378866508742082121000955247538"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-24c5a1a9",
        "target": {
            "function": "udma_ring_irq_handler",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c94dcfa8fcff2dba53915f1dabfee49a3df8b88"
    },
    {
        "digest": {
            "length": 1437.0,
            "function_hash": "229119258713107000405488462345508980121"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-33798325",
        "target": {
            "function": "udma_tx_status",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e0b16bfbd3a4a8d09614046335f4482313e7c0c4"
    },
    {
        "digest": {
            "length": 1008.0,
            "function_hash": "154051531378866508742082121000955247538"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-3b399cd5",
        "target": {
            "function": "udma_ring_irq_handler",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a065657643a62a24b4435ddcaea45f1e9378749e"
    },
    {
        "digest": {
            "line_hashes": [
                "203894327631349099356079589921045630692",
                "252507498207211486695386602065412089385",
                "275607708871684918730854104036280763306",
                "104993150332635462598158134293480314879",
                "268121772183252671407434957582409667219",
                "323506958750808057432175350043376614076",
                "173828241694621183667692492547647337075",
                "206983451485593885965154529809600693961",
                "3381488156813900247619195897994303888",
                "11864873693697694235295165195999854187",
                "59612999145294109462870650918499845290",
                "327710233853403611321561219154130767129",
                "32224779695870515850540788192722812916",
                "233291801865985082586703877144892888470",
                "153895646217932620563304080744887036058",
                "8910262654928999182099362046203026389",
                "323552174787328499654734802626187206629",
                "264491038373180654937894576693792103120",
                "23470002688226565786790293182262230603",
                "174579445676714016538563898628691272688",
                "162066626162744353265133444544013924960",
                "77156557851432907045531585835331079758",
                "42024753071048734204846421899870781197",
                "271326815884895324290572111769720510104",
                "322541521576605607608834081806625532555",
                "147298310749285681741465413074728371505",
                "218372623582969524397658661708346586876"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2022-50541-4c10c6d6",
        "target": {
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c94dcfa8fcff2dba53915f1dabfee49a3df8b88"
    },
    {
        "digest": {
            "length": 411.0,
            "function_hash": "56284888459556912624811651356543947905"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-4edd8c85",
        "target": {
            "function": "udma_udma_irq_handler",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e0b16bfbd3a4a8d09614046335f4482313e7c0c4"
    },
    {
        "digest": {
            "line_hashes": [
                "203894327631349099356079589921045630692",
                "252507498207211486695386602065412089385",
                "275607708871684918730854104036280763306",
                "104993150332635462598158134293480314879",
                "268121772183252671407434957582409667219",
                "323506958750808057432175350043376614076",
                "173828241694621183667692492547647337075",
                "206983451485593885965154529809600693961",
                "3381488156813900247619195897994303888",
                "11864873693697694235295165195999854187",
                "59612999145294109462870650918499845290",
                "327710233853403611321561219154130767129",
                "32224779695870515850540788192722812916",
                "233291801865985082586703877144892888470",
                "153895646217932620563304080744887036058",
                "8910262654928999182099362046203026389",
                "323552174787328499654734802626187206629",
                "264491038373180654937894576693792103120",
                "23470002688226565786790293182262230603",
                "174579445676714016538563898628691272688",
                "162066626162744353265133444544013924960",
                "77156557851432907045531585835331079758",
                "42024753071048734204846421899870781197",
                "271326815884895324290572111769720510104",
                "322541521576605607608834081806625532555",
                "147298310749285681741465413074728371505",
                "218372623582969524397658661708346586876"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2022-50541-60699224",
        "target": {
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e0b16bfbd3a4a8d09614046335f4482313e7c0c4"
    },
    {
        "digest": {
            "length": 995.0,
            "function_hash": "202037852731753615008131209724011548596"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-68f822dd",
        "target": {
            "function": "udma_reset_counters",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e0b16bfbd3a4a8d09614046335f4482313e7c0c4"
    },
    {
        "digest": {
            "length": 1437.0,
            "function_hash": "229119258713107000405488462345508980121"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-6a934a8e",
        "target": {
            "function": "udma_tx_status",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a065657643a62a24b4435ddcaea45f1e9378749e"
    },
    {
        "digest": {
            "line_hashes": [
                "203894327631349099356079589921045630692",
                "252507498207211486695386602065412089385",
                "275607708871684918730854104036280763306",
                "104993150332635462598158134293480314879",
                "268121772183252671407434957582409667219",
                "323506958750808057432175350043376614076",
                "173828241694621183667692492547647337075",
                "206983451485593885965154529809600693961",
                "3381488156813900247619195897994303888",
                "11864873693697694235295165195999854187",
                "59612999145294109462870650918499845290",
                "327710233853403611321561219154130767129",
                "32224779695870515850540788192722812916",
                "233291801865985082586703877144892888470",
                "153895646217932620563304080744887036058",
                "8910262654928999182099362046203026389",
                "323552174787328499654734802626187206629",
                "264491038373180654937894576693792103120",
                "23470002688226565786790293182262230603",
                "174579445676714016538563898628691272688",
                "162066626162744353265133444544013924960",
                "77156557851432907045531585835331079758",
                "42024753071048734204846421899870781197",
                "271326815884895324290572111769720510104",
                "322541521576605607608834081806625532555",
                "147298310749285681741465413074728371505",
                "218372623582969524397658661708346586876"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2022-50541-6b42aa43",
        "target": {
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a065657643a62a24b4435ddcaea45f1e9378749e"
    },
    {
        "digest": {
            "length": 995.0,
            "function_hash": "202037852731753615008131209724011548596"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-769eb091",
        "target": {
            "function": "udma_reset_counters",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d68da10b0cceb4177b653833e794b2923a4ffbd7"
    },
    {
        "digest": {
            "length": 995.0,
            "function_hash": "202037852731753615008131209724011548596"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-99cde6fd",
        "target": {
            "function": "udma_reset_counters",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c94dcfa8fcff2dba53915f1dabfee49a3df8b88"
    },
    {
        "digest": {
            "length": 1008.0,
            "function_hash": "154051531378866508742082121000955247538"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-aec48b41",
        "target": {
            "function": "udma_ring_irq_handler",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e0b16bfbd3a4a8d09614046335f4482313e7c0c4"
    },
    {
        "digest": {
            "length": 411.0,
            "function_hash": "56284888459556912624811651356543947905"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-af7ba64c",
        "target": {
            "function": "udma_udma_irq_handler",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d68da10b0cceb4177b653833e794b2923a4ffbd7"
    },
    {
        "digest": {
            "length": 783.0,
            "function_hash": "323433204033204725142105570751774530371"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-b54bb0ee",
        "target": {
            "function": "udma_check_tx_completion",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e0b16bfbd3a4a8d09614046335f4482313e7c0c4"
    },
    {
        "digest": {
            "length": 411.0,
            "function_hash": "56284888459556912624811651356543947905"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-b595d16f",
        "target": {
            "function": "udma_udma_irq_handler",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c94dcfa8fcff2dba53915f1dabfee49a3df8b88"
    },
    {
        "digest": {
            "length": 783.0,
            "function_hash": "323433204033204725142105570751774530371"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-c1c1a29d",
        "target": {
            "function": "udma_check_tx_completion",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c94dcfa8fcff2dba53915f1dabfee49a3df8b88"
    },
    {
        "digest": {
            "length": 995.0,
            "function_hash": "202037852731753615008131209724011548596"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-c584bcf8",
        "target": {
            "function": "udma_reset_counters",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a065657643a62a24b4435ddcaea45f1e9378749e"
    },
    {
        "digest": {
            "length": 783.0,
            "function_hash": "323433204033204725142105570751774530371"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-c7d68246",
        "target": {
            "function": "udma_check_tx_completion",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a065657643a62a24b4435ddcaea45f1e9378749e"
    },
    {
        "digest": {
            "length": 1437.0,
            "function_hash": "229119258713107000405488462345508980121"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-de4318b2",
        "target": {
            "function": "udma_tx_status",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c94dcfa8fcff2dba53915f1dabfee49a3df8b88"
    },
    {
        "digest": {
            "length": 783.0,
            "function_hash": "323433204033204725142105570751774530371"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-f4844fcd",
        "target": {
            "function": "udma_check_tx_completion",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d68da10b0cceb4177b653833e794b2923a4ffbd7"
    },
    {
        "digest": {
            "length": 1437.0,
            "function_hash": "229119258713107000405488462345508980121"
        },
        "deprecated": false,
        "id": "CVE-2022-50541-f571dae8",
        "target": {
            "function": "udma_tx_status",
            "file": "drivers/dma/ti/k3-udma.c"
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d68da10b0cceb4177b653833e794b2923a4ffbd7"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.6.0
Fixed
5.15.75
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3