libde265.git
2 years ago[PATCH] reference PPS from slice by shared_ptr to prevent usage after deallocation
Dirk Farin [Fri, 4 May 2018 14:30:37 +0000 (16:30 +0200)]
[PATCH] reference PPS from slice by shared_ptr to prevent usage after deallocation

Gbp-Pq: Name fix-use-after-free.patch

2 years ago[PATCH] initialize newly created CABAC model table when (fixes #236)
Dirk Farin [Tue, 24 Jan 2023 18:01:42 +0000 (19:01 +0100)]
[PATCH] initialize newly created CABAC model table when (fixes #236)

Gbp-Pq: Name CVE-2020-21596-global-buffer-overflow.patch

2 years ago[PATCH] SAO: fix illegal table access when input pixel is out of range (fixes #351)
Dirk Farin [Tue, 24 Jan 2023 15:53:06 +0000 (16:53 +0100)]
[PATCH] SAO: fix illegal table access when input pixel is out of range (fixes #351)

Gbp-Pq: Name CVE-2022-43245-fix-asan-wildpointer-apply_sao_internal.patch

2 years ago[PATCH] check for negative Q-values in invalid input streams
Dirk Farin [Mon, 16 Jul 2018 08:57:50 +0000 (10:57 +0200)]
[PATCH] check for negative Q-values in invalid input streams

Gbp-Pq: Name check-4-negative-Q-value.patch

2 years ago[PATCH] Don't update sps if they are only repeated
Tobias Frost [Fri, 13 Jan 2023 11:22:45 +0000 (12:22 +0100)]
[PATCH] Don't update sps if they are only repeated

This is an attempt to improve the mitigations from #365 and #366 and picks up an idea I described at #345:

> One way would be just to look at the pointers of the SPS (fast and easy, but
> may reject more than required), or investigate if the SPS used for the image
> generations are "compatible".

This changes do exactly this: It (very conservativly) checks if the old and new sps have
identical information -- except the reference picture set, which I believe is supposed
to be updated by new sps'). If they are basically identical, the old sps will be
used instead of the new one, (of course, reference image set is updated from the new one)

I'm using standalone operator== and helper functions to avoid changing ABI of the library;
if an ABI bump would be done, of course this should go to the respective classes.

Gbp-Pq: Name recycle_sps_if_possible.patch

2 years ago[PATCH] Use the sps from the image
Tobias Frost [Mon, 12 Dec 2022 13:33:40 +0000 (14:33 +0100)]
[PATCH] Use the sps from the image

(as e.g mc_chroma is using the sps to determine
picture properties, like pic_width_in_luma_samples
and pic_height_in_luma_samples, I *think* this is
more correct.

This PR is for discussion. (See #345.)
It makes the failures go away, but that does not mean it's correct :)

The following poc will be stop failing if (only) this
patch is applied:

 - poc2  #336 - CVE-2022-43238
 - poc4  #338 - CVE-2022-43241
 - poc6-1, poc6-2 #340 - CVE-2022-43242
 - poc7-1, poc7-2  #341 - CVE-2022-43239
 - poc8-1 #342 - CVE-2022-43244
 - poc9-3 #343 - CVE-2022-43236
 - poc10-2, poc10-3 #344 - CVE-2022-43237
 - poc16 #350
 - poc19 #353

The following are still failing if only this patch is
applied, but they stop failing if #365 is applied as well, but will
still fail with ONLY #365 applied (IOW, both are needed)

 - poc1  #335 - CVE-2022-43240
 - poc3  #337 - CVE-2022-43235
 - poc5   #339 - CVE-2022-43423
 - poc9-1,poc9-2, poc9-4  #343 - CVE-2022-43236
 - poc14  #348 - CVE-2022-43253
 - poc15  #349 - CVE-2022-43248
 - poc17-1, poc17-2  #351
 - poc18 #352 - CVE-2022-43245

Gbp-Pq: Name use_sps_from_the_image.patch

2 years ago[PATCH] Try to mitigate asan failures.
Tobias Frost [Mon, 12 Dec 2022 13:03:12 +0000 (14:03 +0100)]
[PATCH] Try to mitigate asan failures.

See #345 for my analysis and details…

(This PR is just for discussion.)

(The CVE references are obtained from the Debian security tracker,
which links the issues.)

This makes the following POCs stop failing:

- poc3 (#337)
- poc7-1 (#341) CVE-2022-43239 (note: does NOT fix poc7-2)
- poc8-2, poc8-3, poc8-4 (#342) CVE-2022-43244   (note: does NOT fix poc8-1)
- poc11-1, poc11-2 (#345) CVE-2022-43249
- poc12 (#346)
- poc13 (#347) CVE-2022-43252
- poc16 (#350)

Gbp-Pq: Name reject_reference_pics_from_different_sps.patch

2 years ago[PATCH] fix reading invalid images where shdr references are NULL in part of the...
Dirk Farin [Tue, 5 Apr 2022 18:00:20 +0000 (20:00 +0200)]
[PATCH] fix reading invalid images where shdr references are NULL in part of the image (#302)

Gbp-Pq: Name CVE-2021-36411.patch

2 years ago[PATCH] fix MC with HDR chroma, but SDR luma (#301)
Dirk Farin [Tue, 5 Apr 2022 17:27:04 +0000 (19:27 +0200)]
[PATCH] fix MC with HDR chroma, but SDR luma (#301)

Gbp-Pq: Name CVE-2021-36410.patch

2 years ago[PATCH] fix assertion when reading invalid scaling_list (#300)
Dirk Farin [Tue, 5 Apr 2022 15:53:43 +0000 (17:53 +0200)]
[PATCH] fix assertion when reading invalid scaling_list (#300)

Gbp-Pq: Name CVE-2021-36409.patch

2 years ago[PATCH] fix streams where SPS image size changes without refreshing PPS (#299)
Dirk Farin [Tue, 5 Apr 2022 16:41:28 +0000 (18:41 +0200)]
[PATCH] fix streams where SPS image size changes without refreshing PPS (#299)

Gbp-Pq: Name CVE-2021-36408.patch

2 years ago[PATCH] fix check for valid PPS idx (#298)
Dirk Farin [Tue, 5 Apr 2022 17:35:46 +0000 (19:35 +0200)]
[PATCH] fix check for valid PPS idx (#298)

Gbp-Pq: Name CVE-2021-35452.patch

2 years ago[PATCH] return error when PCM bits parameter exceeds pixel depth (#225)
Dirk Farin [Tue, 23 Feb 2021 14:11:09 +0000 (15:11 +0100)]
[PATCH] return error when PCM bits parameter exceeds pixel depth (#225)

Gbp-Pq: Name CVE-2020-21599.patch

2 years agofix invalid memory access after unavailable reference frame insertion
Debian Multimedia Maintainers [Tue, 24 Jan 2023 21:39:16 +0000 (21:39 +0000)]
fix invalid memory access after unavailable reference frame insertion

Origin: https://github.com/strukturag/libde265/commit/ee8e09a7f6f65b7c409c7801ad64918a2925ed9b
Reviewed-by: Tobias Frost <tobi@debian.org>
Last-Update: 2023-01-24 <YYYY-MM-DD, last update of the meta-information, optional>

Needed to avoid asan errors for the version at hand, otherwise the crash even
happens before the pocs triggers.
Last-Update: 2023-01-24 <YYYY-MM-DD, last update of the meta-information, optional>
Gbp-Pq: Name fix-invalid-memory-access.patch

2 years agoReplace deprecated FFmpeg API
Andreas Cadhalpun [Tue, 24 Jan 2023 21:39:16 +0000 (21:39 +0000)]
Replace deprecated FFmpeg API

Last-Update: <2015-11-02>

Gbp-Pq: Name ffmpeg_2.9.patch

2 years agoDisable building of some internal tools that no longer link
Joachim Bauch [Tue, 24 Jan 2023 21:39:16 +0000 (21:39 +0000)]
Disable building of some internal tools that no longer link

because internal symbols are not exported.

Gbp-Pq: Name disable_tools.patch

2 years agoOnly export symbols defined in the decoder API.
Joachim Bauch [Tue, 24 Jan 2023 21:39:16 +0000 (21:39 +0000)]
Only export symbols defined in the decoder API.

The encoder API is not final yet, so upstream exports all symbols to make
development easier. For packaging we only want to expose the public API.

Gbp-Pq: Name only_export_decoder_api.patch

2 years agolibde265 (1.0.3-1+deb10u3) buster-security; urgency=medium
Tobias Frost [Tue, 24 Jan 2023 21:39:16 +0000 (21:39 +0000)]
libde265 (1.0.3-1+deb10u3) buster-security; urgency=medium

  * Non-maintainer upload by the LTS Security Team.
  * Source-only upload. (Last upload was accidentially a binary-upload)

[dgit import unpatched libde265 1.0.3-1+deb10u3]

2 years agoImport libde265_1.0.3-1+deb10u3.debian.tar.xz
Tobias Frost [Tue, 24 Jan 2023 21:39:16 +0000 (21:39 +0000)]
Import libde265_1.0.3-1+deb10u3.debian.tar.xz

[dgit import tarball libde265 1.0.3-1+deb10u3 libde265_1.0.3-1+deb10u3.debian.tar.xz]

7 years agoImport libde265_1.0.3.orig.tar.gz
Joachim Bauch [Thu, 19 Apr 2018 09:44:40 +0000 (10:44 +0100)]
Import libde265_1.0.3.orig.tar.gz

[dgit import orig libde265_1.0.3.orig.tar.gz]