public inbox for ntfs3@lists.linux.dev
 help / color / mirror / Atom feed
From: zhongjinghua <zhongjinghua@huawei.com>
To: "almaz.alexandrovich@paragon-software.com"
	<almaz.alexandrovich@paragon-software.com>
Cc: "ntfs3@lists.linux.dev" <ntfs3@lists.linux.dev>
Subject: ntfs3: CVE-2022-3238
Date: Wed, 2 Nov 2022 06:33:20 +0000	[thread overview]
Message-ID: <5ebae6955d62437ca49488e91acf6d17@huawei.com> (raw)

Hi !

I have a question to ask for CVE-2022-3238.

This issue seems to have been fixed by the mainline patch: cd39981fb92adf0cc736112f87e3e61602baa415.

I didn't reproduce the problem when I verified the mainline code, but it did when I rolled back this patch.

So I would like to ask if this patch is a patch to fix this CVE problem.

CVE link: https://access.redhat.com/security/cve/CVE-2022-3238

Vulnerability trigger path:

------remount------
do_mount
    path_mount
        do_remount
            put_fs_context
                fc->ops->free(fc);
                ntfs_fs_free
                    put_mount_options
                        kfree(opts->nls_name);

------umount------
kill_block_super
    generic_shutdown_super
        ntfs_put_super
            put_mount_options
                kfree(opts->nls_name);

cd39981fb92adf0cc736112f87e3e61602baa415:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.1-rc3&id=cd39981fb92adf0cc736112f87e3e61602baa415
This problem triggers:
ntfs_init_fs_context:
       sbi->options = opts; 
       fc->s_fs_info = sbi;
ok:
       fc->fs_private = opts;
       fc->ops = &ntfs_context_ops;

The two references are the same.



                 reply	other threads:[~2022-11-02  6:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5ebae6955d62437ca49488e91acf6d17@huawei.com \
    --to=zhongjinghua@huawei.com \
    --cc=almaz.alexandrovich@paragon-software.com \
    --cc=ntfs3@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox