Here is a patch with the upstream code change, for the 3.1.12~ds3 patchset. I followed the maintainers' documentation and used quilt, so hopefully it should be compliant! Please let me know if there's anything I should be doing differently here.
Thanks! Daniel
CVE-2022-23123_part6.patch
Description: Binary data