RE: Clarification Request: Acceptable Scenarios for Submitting CVE Fixes to Debian

"Fu, Rong (CN)" <[email protected]> Mon, 19 May 2025 06:10:36 +0000
Newsgroups gmane.linux.debian.devel.security
Message-ID <LV2PR11MB60696A7157A0CC0A7EFBC9B2D19CA@LV2PR11MB6069.namprd11.prod.outlook.com>
Hi, Bonaccorso
Thank you very much for your extremely detailed and helpful answer.=20
I truly appreciate the time and effort you took to provide such a thorough =
explanation.
But I still have one concern about Condition 3.

> Condition 3: A fix is available in the latest upstream version, but=20
> the CVE has no Debian bug ID.

As an example, let's consider CVE-2025-4516 affecting the python package.
https://security-tracker.debian.org/tracker/CVE-2025-4516

In the CVE:
Upstream has already released patches for the main branch and version 3.14.
However, this CVE currently has no associated Debian bug ID.

Question: In this case, would it be appropriate for me to file a bug report=
 and submit a patch for the affected Debian package version(s)?

Additionally, regarding your earlier note:

    "You would need a sponsor for your upload, as is the case when contribu=
ting to unstable uploads."

Clarification: Does this "sponsor" refer to the Debian developer assigned t=
o review the patch once I file the bug report?

I appreciate your time and look forward to your insights.

Best regards,
Rong



-----Original Message-----
From: Salvatore Bonaccorso <[email protected]> On Behalf Of Sa=
lvatore Bonaccorso
Sent: Sunday, May 18, 2025 4:12 AM
To: Fu, Rong (CN) <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: Clarification Request: Acceptable Scenarios for Submitting CVE=
 Fixes to Debian

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and =
know the content is safe.

Hi

Let's comment on some of your specific CVEs, thanks for reaching out.

On Mon, May 12, 2025 at 06:09:37AM +0000, Fu, Rong (CN) wrote:
> Dear maintainer,
>
>
>
> I would like to clarify the appropriate circumstances under which a=20
> Debian bug report should be submitted for CVE-related fixes.
>
> Specifically, I'm uncertain about the following five scenarios:
>
>
>
> Condition 1: The fix is already applied in sid, Trixie, but not yet in=20
> Bookworm.
>
> (Example: CVE-2024-57823)
>
>
>
> Am I allowed to prepare and submit patches for multiple Debian=20
> versions (e.g., Bookworm, Bullseye)? Or will the Debian team backport=20
> the fix themselves later? Should external contributors avoid=20
> submitting patches in such cases?

This one will be fixed in the 12.12 point release, the issue is not warrant=
ig a DSA, along with the second open CVE for raptor2 in bookworm.

You usually even as non uploading Debian member could contribute but you wo=
uld need a sponsor for your upload as for when you start contributing for u=
nstable uploads.

> Condition 2: The fix is available but not applied in any Debian release y=
et.
>
> (Example: CVE-2025-31344)
>
>
>
> Am I allowed to prepare and submit patches for multiple Debian=20
> versions (e.g., Sid, Trixie, Bookworm, Bullseye)?

The issue is again a minor issue. It needs to be fixed top down starting in=
 unstable. There is no official upstream patch, but a proposed one which is=
 applied in mandriva. This is more complicated as we need to have some addi=
tional assurance that is the way moving forward. Upstream might get activat=
ed to make sure the fix land first in upstream. I know this is maybe proble=
matic here.

> If yes, should I reply to the existing bug report and attach the=20
> patch, or should I open separate bug reports for each affected=20
> release?

No no separate bug it is already tracked with #1102520 and BTS can cover mu=
tliple versions.

> Condition 3: A fix is available in the latest upstream version, but=20
> the CVE has no Debian bug ID.
>
> (Example: CVE-2023-4133)
>
> May I submit a patch to Debian in this case as well, even though no=20
> bug is currently filed? If so, should I first open a Debian bug and=20
> then submit the patch there?

Nack on this one, src:linux is special. Do not fill bugs for CVEs. We follo=
w upstream, so if you want to see the fix into older upstream stable series=
 then make sure it get backported upstream.

> Condition 4: The CVE has no associated Debian bug ID and no upstream=20
> fix yet.
>
> (Example: CVE-2020-36694)
>
> If I am able to develop a fix myself, may I submit it to Debian for=20
> affected versions?
>
> Also, how can I link the new Debian bug report to the CVE so that the=20
> bug appears on the CVE tracker?

Work with upstream to get it fixed, once it reaches a corresponding stable =
series we will pick it up as well.

> Condition 5: There is no fix available yet from upstream, and the CVE=20
> already has a bug ID.
>
> (Example: CVE-2024-58036)
>
> I understand Debian usually waits for upstream to release a patch.
> However, is there a way I can notify Debian once upstream does publish=20
> the fix, so that the CVE tracker can be updated accordingly?

In this case upstream might be dormant or dead. Still try to develop a patc=
h which uses Crypt:Urandom, make a upstream issue, then we can mark 1102147=
 forwarded to it, and maybe eventually pick the change (again top-down, the=
 issue is minor here again, a fix should land in any case first in unstable=
).

I hope this sheds some light into your questions.

Regards,
Salvatore