$\require{AMScd}$ Suppose $A$ is a ring, and we have a SES of left $A$-modules $$0\longrightarrow M'\mathop\longrightarrow\limits^f M \mathop\longrightarrow \limits^g M''\longrightarrow 0$$ where $M''$ is flat. Now let $N$ be any right $A$-module. Show that $$0\longrightarrow N\otimes M'\longrightarrow N \otimes M \longrightarrow N\otimes M''\longrightarrow 0$$ is exact. Still assuming $M''$ is flat, show also that if $M'$ is flat, then so is $M$, and conversely.
I am sure the second claim follows easily from the nine lemma, but I am stuck with the first one. The hint is to consider a SES $0 \longrightarrow K\longrightarrow F \longrightarrow N \longrightarrow 0$ where $F$ is free and analyze the resulting diagram obtained from tensoring term by term. One gets the following $$\begin{CD} {}&{}&0&{}&0&{}&0\\ {}&@VV(*)V@VV(*)V@VVV \\ 0@>(?)>> K\otimes M^\prime @>>> K\otimes M @>>> K\otimes M^{\prime\prime} @>>> 0 \\ {}& @VVV @VVV @VVV \\ 0 @>>> F\otimes M^\prime @>>> F\otimes M @>>> F\otimes M^{\prime\prime} @>>> 0 \\ {}&@VVV @VVV @VVV \\ 0 @>\rm prove>> N\otimes M^\prime @>>> N\otimes M @>>> N\otimes M^{\prime\prime} @>>> 0 \\ {}& @VVV @VVV @VVV \\ {}&{}&0&{}&0&{}&0 \end{CD}$$
The second row is exact since $F$ is free hence flat, the third column is exact since $M''$ is flat. I want to prove the last row is exact, i.e. that $1_N\otimes f$ is injective, but I am not sure how to proceed. I tried some diagram chasing, but no luck. I am not sure $(?)$ the first row is exact i.e. that $1_K\otimes f$ is injective, since submodules of flat modules needn't be flat. Even assuming $(*)$ $M',M$ are both flat I do not get a diagram that allows the application of the nine lemma. At any rate, I don't want to make this assumption.